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 <r...@android.com> wrote:
> On Tue, Sep 15, 2009 at 8:36 PM, !oEL <runzhou...@gmail.com> 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to