On Sat, Feb 5, 2011 at 10:22 AM, Neilz <neilhorn...@gmail.com> wrote: > Yes, looking at the log output, it seems the device disables the > wireless connection after a few minutes while the phone's sleeping, to > save resources I suppose. So I'll just have to code around that, and > reset the alarm to try again until the connection is back.
If by "wireless connection" you mean WiFi, yes, the WiFi radio gets turned off while the phone is asleep. You will need to maintain a WakeLock and a WiFiLock. And, bear in mind that the user may or may not have an available WiFi connection wherever they happen to be. If by "wireless connection" you mean mobile data, AFAIK that remains on even while the device is asleep. In fact, one of the things that can wake up the device is an incoming packet on an open socket on a 3G connection. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 3.4 Available! -- 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