开发者

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

开发者 https://www.devze.com 2023-04-08 10:53 出处:网络
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 t

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

精彩评论

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