如何在android中获取离线模式的位置。 [英] How to get the location in offline mode in android.

查看:96
本文介绍了如何在android中获取离线模式的位置。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,

我需要从我的应用程序中跟踪Android手机的位置。通过GPS,WiFi和移动数据,位置跟踪工作正常。如果用户处于离线状态没有任何WiFi /移动数据意味着我需要获取用户的当前位置。通过这种方式我只得到我关闭移动数据/ WiFi的最后一个已知位置。如何在离线模式下更新位置。

建议解决一些解决方案。

提前谢谢。

Hi friends,
I need to track the location of the android mobile from my application.In that the location tracking is working fine with GPS,WiFi and Mobile data.If the user is in offline without any WiFi/Mobile data means I need to get the current location of the user.By this way am getting only the last known location where I turned off the Mobile data/WiFi.How to update the locations in OFFLINE mode.
Suggest some solutions to solve.
Thanks in advance.

推荐答案





你有解决方案,万一你的wifi和GPS处于离线模式,你仍然可以从移动SIM卡获取GPS坐标,它将为你提供最近的移动塔的坐标。 />


快乐编码



问候
Hi,

You have solution, in case your wifi and GPS are in offline mode, still you can get the GPS coordinates from the mobile SIM card, it will provide you the coordinates from the nearest mobile tower.

Happy Coding

Regards


这篇关于如何在android中获取离线模式的位置。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆