AuxOne wrote:
>> If this is something that's supposed to be going on 24x7, since keeping
>> the WiFi radio on all that time will drain the battery pretty good, I
>> think you're more going to need to just hang tight in your
>> doWakefulWork() until WiFi connectivity is restored.
> 
> It is indeed 24x7. What do you mean by "hang tight"? Seems like no
> matter how long I wait the Wifi won't turn back on until the device
> fully wakes up, not your usual WakeLock state.

Then grab a stronger WakeLock, I guess.

> The document does, in fact say, you have to keep the Wifi locked
> *before* it sleeps. That's pretty misleading considering a WakeLock
> doesn't have to be set before it sleeps, instead it wakes it up.

Actually, it pretty much works as the name suggests.

> Thanks for all your help. It sounds like there's no way to actual wake
> up Wifi.

Probably there is, but perhaps a partial WakeLock is insufficient.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Training in US: 14-18 June 2010: http://bignerdranch.com

-- 
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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to