Please see the following code
wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); if (wifi.isWifiEnabled() == false) { Toast.mak
It should be "uses-permission" rather than "user-permission". spelling is wrong