I want to get the GPS location of device every 30 min and send it to web service via a web service call. I have used repeating alarms for every 30min with a broadcast receiver in the application for this alarm. Receiver acquires the wake lock and calls the web service to update the location.
This is working perfectly well on my Nexus S but not on Droid X and couple of more phones and I am not able to find a reason for this开发者_如何学Go.
Can this be because phone goes to sleep mode? In this particular thread http://code.google.com/p/android/issues/detail?id=10931 its written that location updates are not sent on all phones if phone is in sleep mode.
Thanks, Prateek
精彩评论