开发者

Updating GPS location from background android doesn't work on most of the phones

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜