Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator's GPS location gives wrong time

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.

like image 353
FernandoPR Avatar asked Feb 03 '11 17:02

FernandoPR


1 Answers

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.

like image 151
bbodenmiller Avatar answered Sep 27 '22 16:09

bbodenmiller