How to read location only once with locationManager (GPS and NETWORK PROVIDER) and not any more looking for updates of location?

后端 未结 7 1550
鱼传尺愫
鱼传尺愫 2020-12-09 08:59

How to read location only once with locationManager (GPS and NETWORK PROVIDER) and not any more looking for updates of location, to save battery?

相关标签:
7条回答
  • 2020-12-09 09:38

    To get the location only once you can refer this link and search for the requestSingleUpdate

    0 讨论(0)
提交回复
热议问题