runnable

Problems with runnable

Hello! I was advised to use this code to make my method execute after a definite period of time, i modified it a bit and now I have: private Handler mHandler = new Handler(); private Runnable mUpdateTimeTask = new Runnable() { public void run() { final long start = mStartTime; // Get the difference in ms lon...

Going from runnable to asynctask

I was trying to get my method running in background using Asynctask, but using sample from the book for a basis the only thing I get is crashed application. At moment I am using this code: private Handler mHandler = new Handler(); private Runnable mUpdateTimeTask = new Runnable() { public void run() { Location location = tra...