long sleepInMilliseconds = 1000;//1 second
try{
Thread.sleep(sleepInMilliseconds );
}catch(InterruptedException e){

}