Retrieve the wireless access families that a BlackBerry device supports
1.
Import the
net.rim.device.api.system.RadioInfo
class.
2.
Invoke
RadioInfo.getSupportedWAFs()
.
Determine if a BlackBerry device supports multiple wireless access families
1.
Import the
net.rim.device.api.system.RadioInfo
class.
2.
Invoke
RadioInfo.areWAFsSupported(int wafs)
.
Determine the wireless access family transceivers that are turned on
1.
Import the
net.rim.device.api.system.RadioInfo
class.
2.
Invoke
RadioInfo.getActiveWAFs()
.
Turn on the transceiver for a wireless access family
1.
Import the
net.rim.device.api.system.Radio
class.
2.
Invoke
Radio.activateWAFs(int WAFs)
. The
WAFs
parameter is a bitmask.
Turn off the transceiver for a wireless access family
1.
Import the
net.rim.device.api.system.Radio
class.
2.
Invoke
Radio.deactivateWAFs(int WAFs)
. The
WAFs
parameter is a bitmask.
Check if the Wi-Fi transceiver is turned on
1.
Import the
net.rim.device.api.system.RadioInfo
class.
2.
Create an IF statement that tests the value of
RadioInfo.WAF_WLAN
and the value returned by
RadioInfo.getActiveWAFs()
.
if ( ( RadioInfo.getActiveWAFs() & RadioInfo.WAF_WLAN ) != 0 ) { … }
Check if the Wi-Fi transceiver is connected to a wireless access point
1.
Import the
net.rim.device.api.system.WLANInfo
class.
Development Guide
Wi-Fi connections
63