title: How to run a thread repeatedly after some interval
body: <p>I want to run a thread (Which does some time consuming task in background and does NOT update UI) it just downloads some files form the internet and it is independent from the UI.  </p>
  
  <p>I want to run this thread repeatedly after some time interval.   </p>
  
  <p>How can i do this, I have thread something like below:  </p>
  
  <pre><code>boolean mResult =false;
  
  void onCreate()
  {
      DownloadThread mDownloadThread = new DownloadThread();
      mDownloadThread.start();
  }
  
  class DownloadThread extends Thread implements Runnable
  {
      public void run() 
      {
         // My download code 
         mResult  = result;
      }
  }
  </code></pre>
  
  <p>Do i need to use <code>Handler</code> for implementing this?</p>