Using the WifiLock only makes sure that you keep the Wifi on for your data connectivity.
If you use WifiManager.setWifiEnabled(boolean ) you are still able to enable/disable the Wifi transport independently whether you have a Lock acquired or not. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Sep 21, 12:17 pm, mist3r0 <[email protected]> wrote: > Hello everyone,how can I do to enable and disable the Wifi Radio? > > If I try to instantiate the object > > WifiLock wifi = new WifiLock (); > > tells me that the costructor is not visible! > > What should I do? > > thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

