What would the code be for checking whether the Wi-Fi is enabled or not?
WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); if (wifiManager.isWifiEnabled()) { // wifi is enabled }
For details check here
2.1m questions
2.1m answers
60 comments
57.0k users