GPS信息在没有互联网的android [英] GPS Info without internet in android

查看:108
本文介绍了GPS信息在没有互联网的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要GPS信息保存到数据库中,当互联网连接是关闭的机器人。
这些信息通过该手机检测的GPS位置。

I want to save GPS info into database when the internet connection is off in android. that information by which the phone detect GPS location.

这可能吗?

请咨询我..

推荐答案

GPS的工作原理没有互联网。互联网只用于A-GPS(以获得更快的位置时,GPS不知道你在哪里,因为它的方式更快,如果GPS知道你的位置的粗略区域)。

GPS works without Internet. Internet is only required for A-GPS (to get the position faster when GPS does not know where you are since it's way faster if GPS knows a rough area of your location).

在另一方面也afik没有办法提供粗略的位置,以您的GPS因为这是不是Android的GPS API的一部分(GPS实在是特定于供应商)。实现可能已经做到这一点。

On the other hand there is afik no way to provide that rough position to your GPS since that is not a part of Android's GPS API (GPS is really vendor specific). The implementation might already do that.

如果你仍然想保存的位置去寻找数据库实例 - 例如 http://www.vogella.de/articles/AndroidSQLite/article.html

If you still want to save that location go look for Database examples - e.g. http://www.vogella.de/articles/AndroidSQLite/article.html

这篇关于GPS信息在没有互联网的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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