Android: GPS location updates when the cellphone is in sleep?

Posted by wei on Stack Overflow See other posts from Stack Overflow or by wei
Published on 2010-06-09T21:17:11Z Indexed on 2010/06/09 21:22 UTC
Read the original article Hit count: 381

Filed under:
|

I need to update the location through GPS in the background even when the phone is in sleep. I am thinking to use AlarmManager to broadcast an Intent and then a receiver will call requestLocationUpdates() on LocationManager. But I am not sure whether it's guaranteed that the GPS location will be updated when the phone is in sleep and an intent will be broadcasted if I registered a PendingIntent when call requestLocationUpdates()?

thanks,

© Stack Overflow or respective owner

Related posts about android

Related posts about locationmanager