public static void threadSleep(long millis){
  try {
    Thread.sleep(millis);
  }
 catch (  InterruptedException ex) {
    Log.e("Exception",StringUtils.exceptionStackTraceToString(ex));
  }
}

public static void threadSleep ( long millis ) { try { Thread . sleep ( millis ) ; } catch ( InterruptedException ex ) { Log . e ( "Exception" , StringUtils . exceptionStackTraceToString ( ex ) ) ; } }
makes the thread sleep for some time
