Android: wifiManager.isWifiEnabled () returns TRUE but WiFi is disabled

advertisements

Here, a Tablet with Android 4.0.

wifiManager.isWifiEnabled()

returns true but if I look at Android default Wifi settings, Wifi is still Off...

How can I check if WiFi is on without using isWifiEnabled()?


You can try to use getWifiState()
Gets the Wi-Fi enabled state.
Returns:
One of WIFI_STATE_DISABLED, WIFI_STATE_DISABLING, WIFI_STATE_ENABLED, WIFI_STATE_ENABLING, WIFI_STATE_UNKNOWN