android - 通过 GPS 和网络提供商获取位置

标签 android networking gps location

在我的应用程序中,我想通过 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/

相关文章:

performance - 在网络上测量 ZeroMQ 性能

amazon-web-services - 如何使用与现有分发版相同的 CNAME 测试 Cloudfront 分发版?

android 模拟器 geo fix 无法设置 gps 位置

Android - Andengine - 如何使用原生UI SKD

android - 使用另一个主题而不是当前主题来设计 Spinner

Python:如何使用 Ubuntu Mate 创建超过 2 RPi 的简单聊天

android - GPS 应用程序中的风向和风速

android - 如何将 facebook、twitter 和 google plus 集成到 android 应用程序

Android - 如何打开免提电话和最大通话音量

android - AsyncTask 在 android 中获取位置出错 "can' t 在未调用 looper.prepare() 的线程内创建处理程序”