android.net.wifi
Class WifiManager

java.lang.Object
  extended by android.net.wifi.WifiManager

public class WifiManager
extends Object


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

Field Detail

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
Method Detail

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.