google maps - loop an action using system milliseconds android java -



google maps - loop an action using system milliseconds android java -

hi developing app update marker on google maps , move him towards various geopoints.

i moving marker few meters per 10 milliseconds accomplish smooth motion on map.

i using countdown timer that(move marker meters every 10 milliseconds example) know not precise.

what else can utilize loop action , can more precise?

shall utilize system.nanotime();

and if best way can illustration ?

try timertask & timer

timer timer = new timer(); timertask task = new timertask() { @override public void run() { // code here } }; timer.scheduleatfixedrate(task, 0, 10000);

hope, help you!

android google-maps countdowntimer

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -