开发者

Does the Android GPS drain battery when trying to get first fix?

I noticed something odd on my HTC Desire S Android phone: If the GPS cannot get a fix the GPS icon in the notification bar stays blinking the whole day. Even if I force stop all applications using the GPS the icon keeps on blinking.

Blinking means that it hasn't gotten a fix. It seems like the GPS is continuously trying to get that first fix. If I cannot shut off the GPS during initial fix, does it still drain the battery as if it had a fi开发者_开发技巧x?


unregistered the LocationListener in your application using removeUpdates() method . you must have forgot this.


Assuming you have unregistered all of the location listener; This is a known problem I've seen it before. It is really hard to say what happened without logs. There could be two possibilities :

  • More likely one: The stop GPS blinking icon notification to the status bar somehow got lost. I've seen this bug before (once in 500 runs). In this case, GPS has beed stopped, It is a bug in StatusBarPolicy.java or GpsLocationProvider.java . The intent GPS_FIX_CHANGE_ACTION is somehow missed.

  • It is a rare case that GPS is actually running, that may be due to a defect in the GPS chipset used in HTC

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜