title: How to Send the Current Thread to Sleep
body: <pre><code>Thread thred = new Thread();
          thred.run();
  
  
      public void run() {
          while (true)
          {
  
         try {
                  Thread.sleep(500);
                  Toast toast = Toast.makeText(getApplicationContext(), "Sleep Over", 100);
              } catch (InterruptedException e) {
                  // TODO Auto-generated catch block
                  Toast toast = Toast.makeText(getApplicationContext(), "Sleep NOT Over", 100);
              }
          }
  </code></pre>
  
  <p>This code don't work</p>