Add Snippet |
The WifiManager can be used to enable and disable wifi. Where 'enabled' is a boolean. Found on damonkohler.com
raw · copy · downloadWifiManager wifi = (WifiManager) getSystemService(Context.WIFI_SERVICE); wifi.setWifiEnabled(enabled);
Preview
Editors
Tags
Related Snippets
Check for Updates Once a Day
Scan for Wireless Networks
Sending SMS with SmsManager
Network connectivity changes
Method for enable disable wifi
Non-Blocking Web-Request
Be the first to comment