Showing posts with label handler. Show all posts
Showing posts with label handler. Show all posts

Sunday, September 20, 2015

Delay using Handler

private Handler mHandler = new Handler();

private Runnable mUpdateTimeTask = new Runnable() {
        public void run() {
            // do what you need to do here after the delay
            
        }
    };
insert this anywhere you want to run
mHandler.postDelayed(mUpdateTimeTask, 2000);