Provides classes to manage Wi-Fi functionality on the device.
The Wi-Fi APIs provide a means by which applications can communicate with the lower-level wireless stack that provides Wi-Fi network access. Almost all information from the device supplicant is available, including the connected network's link speed, IP address, negotiation state, and more, plus information about other networks that are available. Some other API features include the ability to scan, add, save, terminate and initiate Wi-Fi connections.
Some APIs may require the following user permissions:
Note: Not all Android-powered devices provide Wi-Fi functionality. If your application uses Wi-Fi, declare so with a <uses-feature> element in the manifest file:
xml Example
<manifest ...> <uses-feature android:name="android.hardware.wifi" /> ... </manifest>
Type | Reason |
---|---|
AuthAlgorithmType | Enumerates values returned by several types. |
GroupCipherType | Enumerates values returned by several types. |
KeyManagementType | Enumerates values returned by several types. |
PairwiseCipherType | Enumerates values returned by several types. |
ProtocolType | Enumerates values returned by several types. |
ScanResult | Describes information about a detected access point. |
ScanResult+InterfaceConsts | Documentation for this section has not yet been entered. |
SupplicantState | From defs.h in wpa_supplicant. |
SupplicantState+InterfaceConsts | Documentation for this section has not yet been entered. |
WifiConfiguration | A class representing a configured Wi-Fi network, including the security configuration. |
WifiConfiguration+AuthAlgorithm | Recognized IEEE 802.11 authentication algorithms. |
WifiConfiguration+GroupCipher | Recognized group ciphers. |
WifiConfiguration+InterfaceConsts | Documentation for this section has not yet been entered. |
WifiConfiguration+KeyMgmt | Recognized key management schemes. |
WifiConfiguration+PairwiseCipher | Recognized pairwise ciphers for WPA. |
WifiConfiguration+Protocol | Recognized security protocols. |
WifiConfiguration+Status | Possible status of a network configuration. |
WifiEapMethod | Enumerates values returned by several types. |
WifiEnterpriseConfig | Enterprise configuration details for Wi-Fi. |
WifiEnterpriseConfig+Eap | The Extensible Authentication Protocol method used |
WifiEnterpriseConfig+InterfaceConsts | Documentation for this section has not yet been entered. |
WifiEnterpriseConfig+Phase2 | The inner authentication method used |
WifiInfo | Describes the state of any Wifi connection that is active or is in the process of being set up. |
WifiInfo+InterfaceConsts | Documentation for this section has not yet been entered. |
WifiManager | This class provides the primary API for managing all aspects of Wi-Fi connectivity. |
WifiManager+MulticastLock | Allows an application to receive Wifi Multicast packets. |
WifiManager+WifiLock | Allows an application to keep the Wi-Fi radio awake. |
WifiManager+WpsCallback | Documentation for this section has not yet been entered. |
WifiPhase2Method | Enumerates values returned by several types. |
WifiStatus | Enumerates values returned by several types. |
WpsFailureReason | Enumerates values returned by several methods of Android.Net.Wifi.WpsFailureReason. |
WpsInfo | A class representing Wi-Fi Protected Setup
See Also |
WpsInfo+InterfaceConsts | Documentation for this section has not yet been entered. |