在我的应用程序中,我想通过 GPS
获取用户当前位置,我想设置条件,如果获取时间超过 3 分钟,那么它将停止并获取位置 ll切换到 NETWORK
我该怎么做?
谢谢
最佳答案
我会建议您查看此链接..这是迄今为止获取当前位置的最佳链接。
What is the simplest and most robust way to get the user's current location on Android?
关于android - 通过 GPS 和网络提供商获取位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8573203/