For my new Android application I need a function, that timeout my application for 3 Seconds. I tried the function \"sleep()\" like this:
seekBar1.setProgress
You can use postDelayed() method like this:
postDelayed()
handler=new Handler(); Runnable r=new Runnable() { public void run() { //what ever you do here will be done after 3 seconds delay. } }; handler.postDelayed(r, 3000);