Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经在我的应用程序中使用 android 中的 GPS 实现了位置识别,但现在如果 GPS 不可用或禁用,那么如何在设备中启用互联网时识别位置。无论是使用谷歌 API 还是三角测量或其他东西。谢谢你。
你读过这个官方文档了吗?
http://developer.android.com/guide/topics/location/obtaining-user-location.html
Android 会自动执行此操作。