Android模拟器的GPS位置让错误的时间 [英] Android emulator's GPS location gives wrong time

查看:153
本文介绍了Android模拟器的GPS位置让错误的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我测试的模拟器一个Android GPS跟踪应用程序,我试图找出如果最后已知的位置信息已过时或不运行时成问题。获取系统时间给我准确的时间,但是当我打电话location.getTime()最后已知位置返回的时间是关闭的几个小时。我做了一些更多的测试,并发现每次我从Eclipse中的模拟器控制选项卡(类似​​于地理修复)发送GPS位置时,该位置的时间一秒前进。这使得没有任何意义!我想AP preciate任何见解这个问题。

I am testing an Android GPS tracking application in the Emulator and I am running into a problem when trying to figure out if the last known location is stale or not. Getting the system time gives me the correct time, but when I call location.getTime() for the last known location the time returned is off by a few hours. I did some more testing and found out that every time I send a GPS location from the Emulator control tab in Eclipse (similar to geo fix), the location's time is advanced by one second. This makes no sense at all! I would appreciate any insights into this problem.

推荐答案

随着讨论这似乎是在模拟器中的错误(我是能够重复它)。 // code:我在 HTTPS提交bug报告.google.com / p /安卓/问题/细节?ID =如果有人想添加细节,明星吧,和/或跟随。27272

As discussed this appears to be a bug in the emulator (I was able to repeat it as well). I filed a bug report at https://code.google.com/p/android/issues/detail?id=27272 if anyone wants to add details, star it, and/or follow along.

这篇关于Android模拟器的GPS位置让错误的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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