GPS信息在没有互联网的android

编程入门 行业动态 更新时间:2024-10-27 22:23:31
本文介绍了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.

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

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

更多推荐

GPS信息在没有互联网的android

本文发布于:2023-11-27 17:02:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1638852.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:互联网   信息   GPS   android

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!