Help Center
Local Navigation
- Managing applications
- Storing data
-
Creating connections
- Network connections and transport types
- 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
- Retrieve the wireless network name
- Open a Wi-Fi socket connection
- Open a Wi-Fi HTTP connection
- Open a Wi-Fi HTTPS connection
- Enhanced Network API
- Controlling access to APIs and application data
- Testing a BlackBerry device application
- Packaging and distributing a BlackBerry Java Application
- Localizing BlackBerry device applications
- Custom user authentication
- Glossary
- Provide feedback
- Related resources
- Document revision history
- Legal notice
BlackBerry Manuals & Help
>
Documentation for Developers
>
Java Development Guides and API Reference
>
Core - Development Guide - BlackBerry Java Application - 5.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) {…}
Previous topic: Check if the Wi-Fi transceiver is turned on