Am Sonntag, 10. Oktober 2010 23:50:35 UTC+2 schrieb Mark Murphy:
>
> I strongly suspect that you need to hold a WakeLock for as long as you
> are seeking fixes. I am not aware that any location provider has the
> ability to wake up the device.
>
Sorry for digging up this ancient topic, but an trying to find an answer to 
the same question.
In my app so I am able to receive location updates even if I put the device 
to sleep, without explicitly holding a WakeLock.
I came across what appears to be the Android 2.2 source of the 
GpsLocationProvider<http://grepcode.com/file_/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/com/android/internal/location/GpsLocationProvider.java/?v=source>,
 
and assuming I did not misinterpret the code, it looks like it is really 
able to wake up the device via the AlarmManager.

Can anyone confirm this?

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