Thursday, March 29, 2012

Re: [android-developers] Wifi and phone sleep state

On Thu, Mar 29, 2012 at 9:02 AM, Put_tiMe <puttime@gmail.com> wrote:
> I have a situation where in I use AlarmManager to wake up once in a few
> minutes, and switch on/off wifi.
> If I don't use the device for a while, then the wifi never connects to the
> preferred wifi network.
> Is there anything happening with the wifi if the phone is in a sleep state?

The WiFi radio will power down. Use a WifiLock if you need WiFi. Bear
in mind that this increases power drain.

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

Android Training in NYC: http://marakana.com/training/android/

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment