Android examples for java.lang:Thread
sleep For In Seconds
import android.util.Log; import java.text.SimpleDateFormat; import java.util.Calendar; public class Main{ public static void sleepForInSecs(int secs) { try {/*from ww w . j a va 2 s . c om*/ Thread.sleep(secs * 1000); } catch (InterruptedException x) { throw new RuntimeException("interrupted", x); } } }