> Hello everyone,how can I do to enable and disable the Wifi Radio?

Try WifiManager#setWifiEnabled()

> If I try to instantiate the object
>
> WifiLock wifi = new WifiLock ();
>
> tells me that the costructor is not visible!

Correct.

> What should I do?

Use WifiManager.createWifiLock() if you truly need a WifiLock.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to