title: How to stop thread safely in android?
body: <p>how can I stop threads safely?</p>
  
  <pre><code> downloadThread = new Thread(new Runnable() {
  
     @Override
     public void run() {
  
    });
    downloadThread.start();
   }
  </code></pre>