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
1.4m articles
1.4m replys
5 comments
57.0k users