Ricardo Azevedo Ricardo Azevedo - 1 month ago 22
Android Question

Wrong gps timestamp in Android with only 7 digits

I've an app that uses the LocationManager in Android and i'm tryng to get the current time provided by gps in millis.

I noticed in my database a row with a wrong timestamp.
There's others that are always corrected, for example:


  • 1477050084629: Correct time provided

  • 6406148: Incorrect time provided



The incorrect time is provided by using a device Samsung SM-J105B (Galaxy J1 Mini Dual Chip).
I didn't find topics related a problem like this, only problems when the time is different by hours or days.
In my case the timestamp return a number of small quantity of digits.

Answer

I think the problem would be generated by device, see this topic:

https://support.strava.com/hc/en-us/articles/216515918-My-Activity-has-the-wrong-date-