且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Android中每5秒查找一次我的当前位置(纬度+经度)?

更新时间:2022-12-26 10:50:21

您可以使用

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 .

You can use this post to achieve what you are looking for. Look at the setInterval(5000) will do that