You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you see Location.getElapsedRealtimeNanos is used which its value is nanoseconds since last device boot (instead of milliseconds since January 1, 1970)
Shouldn't it be Location.getTime()?
The text was updated successfully, but these errors were encountered:
So, this is an error and we should use unix timestamp instead of Location.getElapsedRealtimeNanos. Does Location.getTime() do what we want? We will change it then
Last parameter of
GeomagneticField
constructor istimeMillis
. Here is the documentation of this parameter:In KalmanLocationService the timestamp which is passed to GeomagneticField is calculated like this:
As you see
Location.getElapsedRealtimeNanos
is used which its value is nanoseconds since last device boot (instead of milliseconds since January 1, 1970)Shouldn't it be
Location.getTime()
?The text was updated successfully, but these errors were encountered: