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 define a Handle in your Activity and use Handle.postDelayed() from Activity's onCreate()so you receive a message on that handle in 3 seconds. Upon receving you can enable the button.
You can do the same using AsyncTask where in doInBackground() you just sleep for 3 sec. Then in onPostExecute() you enable the button.