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

后端 未结 7 1572
鱼传尺愫
鱼传尺愫 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条回答
  •  Happy的楠姐
    2020-12-09 09:38

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

提交回复
热议问题