lostzen / lost

A drop-in replacement for Google Play services location APIs for Android
http://mapzen.github.io/lost/
Other
351 stars 70 forks source link

Remove use of Location#getTime or bump min API #243

Closed sarahsnow1 closed 1 year ago

sarahsnow1 commented 6 years ago

We should not be using Location#getTime for elapsed time computation but are doing so for earlier versions of Android because Location#getElapsedRealtimeNano is not available.

https://github.com/mapzen/lost/blob/master/lost/src/main/java/com/mapzen/android/lost/internal/SystemClock.java#L13-L19 https://developer.android.com/reference/android/location/Location.html#getElapsedRealtimeNanos()

Consider creating another, reliable way to compute this value or modifying LOST to workaround this while still respecting LocationRequest#fastestInterval. Alternatively, evaluate bumping the minimum SDK required from 15 to 17 (this would drop support for 3% of users).

msmollin commented 1 year ago

Closing as this repo is no longer maintained.