Android GPS emulator location gives wrong time

I am testing an Android GPS tracking application in the emulator and I am having trouble trying to figure out if the last known location is outdated or not.

Getting the system time gives me the correct time, but when I call location.getTime()for the last known location, the return time is off for a few hours. I did a few more tests and found out that every time I send a GPS location from the emulator control tab in Eclipse (similar to geo-fix), the time it takes is one second longer. That makes no sense! I would appreciate any understanding of this issue.

+5
source share
2 answers

As discussed, this seems like a bug in the emulator (I was able to repeat too). I sent a bug report to https://code.google.com/p/android/issues/detail?id=27272 if someone wants to add details, light it and / or follow along.

+3
source

This bug has been fixed in ToT dev branchfor API 26. We will take this fix for other branches, and I hope that publicly available system images will see bug fixes in the near future.

If any problem persists, inform the Google tracker , which they will open for verification.

0
source

All Articles