How to make android activity run in parallel -



How to make android activity run in parallel -

i have 2 class, 1 activity can handle chronometer, handle locationlistener.i want run them utilize stopwatch , changed location.

anyone have samples or suggestions ? thanks

addition: sorry confuse question. need know how create chronometer run while keeping location changed.

well, utilize locationlistener add together location array every time changed maintain track of location.

example:

public class myclass implements locationlistener{ private static list<location> locationlist = new arraylist<location>(); @override onlocationchanged(location location){ locationlist.add(location); } }

then utilize system.gettimemillis() (or akin) when want start time, , same method when want end time. subtract 2 time difference , how long took.

android android-activity parallel-processing chronometer

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -