I want to wait 5 seconds before starting another public void method. The thread sleep was not working for me. If there is a way of wait() without using Threads I wo
wait()
See if this works for you. Be sure to import the android.os.Handler
android.os.Handler
Handler handler = new Handler(); handler.postDelayed(new Runnable() { public void run() { // yourMethod(); } }, 5000); //5 seconds