title: Android: Standard way to make a thread run every second
body: <p>I'm trying to run  a <code>Thread</code> class every second. I cant use <code>Runnable</code>. I tried in the following way, but its throwing <code>StackOverflowException</code>. Can anyone please let me know a standard method to make a thread class run every second.</p>
  
  <pre><code>public class A extends Thread {
  
      public void run() {
         //do my stuff
        sleep(1*1000,0);
        run();
      }
  }
  </code></pre>