This question already has answers here:
What is the simplest and most robust way to get the user's current location on Android?
(28个答案)
已关闭6年。
我想在Android应用程序中找到当前位置的纬度和经度。它不在位置更改。位置更改时我得到了纬度和经度值,但是我需要纬度和经度的当前位置。如何做到这一点?
(28个答案)
已关闭6年。
我想在Android应用程序中找到当前位置的纬度和经度。它不在位置更改。位置更改时我得到了纬度和经度值,但是我需要纬度和经度的当前位置。如何做到这一点?
最佳答案
阅读Obtaining User Location的Android文档
关于android - 如何在Android应用程序中获取当前的经度和纬度?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/8789497/