Android Location listener in Service does not work until I reactivate WiFi/mobile network

后端 未结 4 947
我寻月下人不归
我寻月下人不归 2020-12-01 20:29

My location listener works normally, collects data without any problem. But sometimes it doesn\'t collect any data. I have to turn off and restart my location provider at th

4条回答
  •  盖世英雄少女心
    2020-12-01 21:05

    Why dont you use both *GPS_PROVIDER* and *NETWORK_PROVIDER* ? I tried this and it was working fine.

    Does this error occur while testing on other devices also or only your device ?

提交回复
热议问题