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