public static void setWifiOn ( boolean isOn ) { Settings . Global . putInt ( RuntimeEnvironment . application . getContentResolver ( ) , Settings . Global . WIFI_ON , isOn ? 1 : 0 ) ; Settings . System . putInt ( RuntimeEnvironment . application . getContentResolver ( ) , Settings . System . WIFI_ON , isOn ? 1 : 0 ) ; }
Non - Android accessor that allows the value of the WIFI_ON setting to be set .