How to find my current location (latitude + longitude) in every 5 second in Android?

后端 未结 4 1677
无人共我
无人共我 2021-01-26 01:45

I tried many code snippets but all the example takes too much time to provide latitude and longitude .

I want to get current latitude in every 5 seconds .

4条回答
  •  醉话见心
    2021-01-26 02:10

    you can check and integrate this library which is a wrapper for google play services location which also handles permissions.

    google location

    In this lib you can find various methods to set param

提交回复
热议问题