android.net.wifi
Class WifiManager
java.lang.Object
android.net.wifi.WifiManager
public class WifiManager
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERROR_AUTHENTICATING
public static final int ERROR_AUTHENTICATING
- See Also:
- Constant Field Values
WIFI_STATE_CHANGED_ACTION
public static final String WIFI_STATE_CHANGED_ACTION
- See Also:
- Constant Field Values
EXTRA_WIFI_STATE
public static final String EXTRA_WIFI_STATE
- See Also:
- Constant Field Values
EXTRA_PREVIOUS_WIFI_STATE
public static final String EXTRA_PREVIOUS_WIFI_STATE
- See Also:
- Constant Field Values
WIFI_STATE_DISABLING
public static final int WIFI_STATE_DISABLING
- See Also:
- Constant Field Values
WIFI_STATE_DISABLED
public static final int WIFI_STATE_DISABLED
- See Also:
- Constant Field Values
WIFI_STATE_ENABLING
public static final int WIFI_STATE_ENABLING
- See Also:
- Constant Field Values
WIFI_STATE_ENABLED
public static final int WIFI_STATE_ENABLED
- See Also:
- Constant Field Values
WIFI_STATE_UNKNOWN
public static final int WIFI_STATE_UNKNOWN
- See Also:
- Constant Field Values
SUPPLICANT_CONNECTION_CHANGE_ACTION
public static final String SUPPLICANT_CONNECTION_CHANGE_ACTION
- See Also:
- Constant Field Values
EXTRA_SUPPLICANT_CONNECTED
public static final String EXTRA_SUPPLICANT_CONNECTED
- See Also:
- Constant Field Values
NETWORK_STATE_CHANGED_ACTION
public static final String NETWORK_STATE_CHANGED_ACTION
- See Also:
- Constant Field Values
EXTRA_NETWORK_INFO
public static final String EXTRA_NETWORK_INFO
- See Also:
- Constant Field Values
EXTRA_BSSID
public static final String EXTRA_BSSID
- See Also:
- Constant Field Values
EXTRA_WIFI_INFO
public static final String EXTRA_WIFI_INFO
- See Also:
- Constant Field Values
SUPPLICANT_STATE_CHANGED_ACTION
public static final String SUPPLICANT_STATE_CHANGED_ACTION
- See Also:
- Constant Field Values
EXTRA_NEW_STATE
public static final String EXTRA_NEW_STATE
- See Also:
- Constant Field Values
EXTRA_SUPPLICANT_ERROR
public static final String EXTRA_SUPPLICANT_ERROR
- See Also:
- Constant Field Values
SCAN_RESULTS_AVAILABLE_ACTION
public static final String SCAN_RESULTS_AVAILABLE_ACTION
- See Also:
- Constant Field Values
RSSI_CHANGED_ACTION
public static final String RSSI_CHANGED_ACTION
- See Also:
- Constant Field Values
EXTRA_NEW_RSSI
public static final String EXTRA_NEW_RSSI
- See Also:
- Constant Field Values
NETWORK_IDS_CHANGED_ACTION
public static final String NETWORK_IDS_CHANGED_ACTION
- See Also:
- Constant Field Values
ACTION_PICK_WIFI_NETWORK
public static final String ACTION_PICK_WIFI_NETWORK
- See Also:
- Constant Field Values
WIFI_MODE_FULL
public static final int WIFI_MODE_FULL
- See Also:
- Constant Field Values
WIFI_MODE_SCAN_ONLY
public static final int WIFI_MODE_SCAN_ONLY
- See Also:
- Constant Field Values
WIFI_MODE_FULL_HIGH_PERF
public static final int WIFI_MODE_FULL_HIGH_PERF
- See Also:
- Constant Field Values
getConfiguredNetworks
public List<WifiConfiguration> getConfiguredNetworks()
addNetwork
public int addNetwork(WifiConfiguration config)
updateNetwork
public int updateNetwork(WifiConfiguration config)
removeNetwork
public boolean removeNetwork(int netId)
enableNetwork
public boolean enableNetwork(int netId,
boolean disableOthers)
disableNetwork
public boolean disableNetwork(int netId)
disconnect
public boolean disconnect()
reconnect
public boolean reconnect()
reassociate
public boolean reassociate()
pingSupplicant
public boolean pingSupplicant()
startScan
public boolean startScan()
getConnectionInfo
public WifiInfo getConnectionInfo()
getScanResults
public List<ScanResult> getScanResults()
saveConfiguration
public boolean saveConfiguration()
getDhcpInfo
public DhcpInfo getDhcpInfo()
setWifiEnabled
public boolean setWifiEnabled(boolean enabled)
getWifiState
public int getWifiState()
isWifiEnabled
public boolean isWifiEnabled()
calculateSignalLevel
public static int calculateSignalLevel(int rssi,
int numLevels)
compareSignalLevel
public static int compareSignalLevel(int rssiA,
int rssiB)
createWifiLock
public WifiManager.WifiLock createWifiLock(int lockType,
String tag)
createWifiLock
public WifiManager.WifiLock createWifiLock(String tag)
createMulticastLock
public WifiManager.MulticastLock createMulticastLock(String tag)
Copyright © 2008-2012. All Rights Reserved.