Thank you guys. I got rid of the Security Exceptions by adding a couple of permissions, including WAKE_LOCK, which appears to be the exception I got after adding the two WIFI ones.
However, now I've managed to actually access the state, but in Emulator it tells me: Failed to load WIFI driver. The same thing happens when I use the built-in power control widget. On Sep 17, 12:48 am, Raphael <[email protected]> wrote: > On Tue, Sep 15, 2009 at 8:36 PM, !oEL <[email protected]> wrote: > > > Hi, > > > Second question of the day, how do I programmatically turn on/off > > WIFI? > > There's an example at line 226 here: > http://code.google.com/p/autosettings/source/browse/trunk/AutoSetting... > > R/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

