Help Center
Local Navigation
- Creating user interfaces
- Storing data
- Creating connections
- Network gateways
- Connections
- Wi-Fi connections
- Wireless access families
- Retrieve the wireless access families that a BlackBerry device supports
- Determine if a BlackBerry device supports multiple wireless access families
- Determine the wireless access family transceivers that are turned on
- Turn on the transceiver for a wireless access family
- Turn off the transceiver for a wireless access family
- Check if the Wi-Fi transceiver is turned on
- Check if the Wi-Fi transceiver is connected to a wireless access point
- Retrieve the status of the wireless access point or the active Wi-Fi profile
- Open a Wi-Fi socket connection
- Open a Wi-Fi HTTP connection
- Open a Wi-Fi HTTPS connection
- Managing applications
- Using custom messages and folders in the message list
- Applications for push content
- Localizing BlackBerry device applications
- Controlling access to APIs and application data
- Testing a BlackBerry device application
- Packaging and distributing a BlackBerry Java Application
- Glossary
- Provide feedback
- Legal notice
BlackBerry Manuals & Help
>
Documentation for Developers
>
Java Development Guides and API Reference
>
Development Guide - BlackBerry Java Development Environment - 4.7.0
Check if the Wi-Fi transceiver is connected to a wireless access point
- Import the net.rim.device.api.system.WLANInfo class.
- Create an IF statement that tests the value of WLANInfo.WLAN_STATE_CONNECTED and the value returned by WLANInfo.getWLANState(). The WLANInfo.getWLANState() method checks if a BlackBerry® device has an IP address and can transfer data over a Wi-Fi® network. If the transceiver for the WLAN wireless access family is off, this method returns WLANInfo.WLAN_STATE_DISCONNECTED.
if (WLANInfo.getWLANState() == WLANInfo.WLAN_STATE_CONNECTED) {…}
Parent topic: Wi-Fi connections