Enable and Disable WiFi

2 votes · 0 comments

The WifiManager can be used to enable and disable wifi. Where 'enabled' is a boolean. Found on damonkohler.com

raw ·
copy
· download
WifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); wifi.setWifiEnabled(enabled);

Be the first to comment

Sign in with OpenID