How can I wait for 10 second without locking application UI in android [duplicate]
You can use this: Handler handler = new Handler(); handler.postDelayed(new Runnable() { public void run() { // Actions to do after 10 seconds } }, 10000); For Stop the Handler, You can try this: handler.removeCallbacksAndMessages(null);