Ian Lake
Ian Lake
Aug 29, 2017 · 1 min read

It should not be automatically updating. You’ll want to use getLastPositionUpdateTime() to know when the position was last updated and getPlaybackSpeed() (if relevant to your app) to know how fast the position is being updated.

Then you can simply do position + playbackSpeed * (System.currentTimeMillis() — lastPositionUpdateTime) to calculate the current time (probably something you’d do in a Handler that uses postDelayed() every ~second).

)

    Ian Lake

    Written by

    Ian Lake

    Android Framework Developer at Google and Runner www.google.com/+IanLake