我要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
发布评论