Hi i am developing an app where i update a marker on the Google maps and i move him towards various geopoints.
I am moving the marker a few meters per 10 milliseconds to achieve a smooth movement on the map.
I am using a countdown timer to do that(move the marker some meters every 10 milliseconds for example) but as you know it is not precise.
What else can i use to loop an action and i can be more precise?
Shall i use System.nanotime();
And if this is the best way can i get an example ?
Try the TimerTask & Timer
Hope, it help you!