Network provider stops providing updates

坚强是说给别人听的谎言 提交于 2019-12-08 03:15:28

问题


I have noticed that rarely (every few days), my app stops receiving new location updates.

The location listener is registered with both network and GPS providers. The GPS provider is off so any location updates come from the network provider. Every few days or so, I notice the location is old and not updating. From my debug log I can see that the location listener is being registered with location manager but there are just no new locations being found. onLocationChanged() is not called.

The strange thing is, Google Maps has no problem getting a new network location. Restarting/reinstalling/clearing data on the app does not solve the issue. The only thing that solves it is to restart the phone.

This has happened on 3 different devices (2 ICS, 1 JB).

Similar problem but not worded very well here.

来源:https://stackoverflow.com/questions/13849748/network-provider-stops-providing-updates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!