title: how do you make an android activity sleep and implement after the sleep period while switching onto another activity
body: <p>Is there a way in which I can have an android activity to sleep instead of the entire application going to sleep.
  I want the original activity to wait for 10 seconds and implement the code in it while I am using the next activity. However, using Thread.sleep(), the entire application goes to sleep. Is there any other way to do this apart from Thread.sleep()?</p>
  
  <p><code>try {
              Thread.sleep(10000);
          } catch (InterruptedException e1) {
              // TODO Auto-generated catch block
              e1.printStackTrace();
          }</code></p>