24 March 2012

list of wifi states in android

(Note for myself,due fact that i keep forgeting wifi states.)
List of possible state of wifi in Android.

WifiManager.WIFI_STATE_DISABLED  (Wi-Fi is disabled.)
WifiManager.WIFI_STATE_DISABLING (Wi-Fi is currently being disabled.) WifiManager.WIFI_STATE_ENABLED (Wi-Fi is enabled.)
WifiManager.WIFI_STATE_ENABLING (Wi-Fi is currently being enabled.)
WifiManager.WIFI_STATE_UNKNOWN (Wi-Fi is in an unknown state.)


source: http://developer.android.com/reference/android/net/wifi/WifiManager.html