Retrieve the status of the wireless access point or the active Wi-Fi profile

You can let a BlackBerry® device application retrieve status information such as the data rate of the connection, the wireless LAN standards used (802.11a™, 802.11b™, or 802.11g™), the SSID of the associated access point, or the name of the Wi-Fi profile in use. The transceiver for the WLAN wireless access family must be connected to a wireless access point.

  1. Import the net.rim.device.api.system.WLANInfo class.
  2. Invoke WLANInfo.getAPInfo(), storing a reference to WLANInfo.WLANAPInfo that this method returns. The WLANInfo.WLANAPInfo object contains a snapshot of the current wireless network.
    	WLANInfo.WLANAPInfo info = WLANInfo.getAPInfo();
    
    If the BlackBerry device is not connected to an access point, the WLANInfo.getAPInfo() method returns null.

Index


Was this information helpful? Send us your comments.