Android App Development
Showing posts with label
Wifi
.
Show all posts
Showing posts with label
Wifi
.
Show all posts
Saturday, 6 April 2013
Android Wifi How to enable and disable Wifi?
The WifiManager can be used to enable and disable wifi. Where 'enabled' is a boolean.
WifiManager
wifi
=
(
WifiManager
)
getSystemService
(
Context
.
WIFI_SERVICE
);
wifi
.
setWifiEnabled
(
enabled
);
Older Posts
Home
Subscribe to:
Posts (Atom)
Disqus for Android