How to stop or destroy a running Thread
<p>I have one thread class which star in <code>onCreate</code> of an activity.</p>

<pre><code> class MyThread extends Thread
 {
      void run()
      {
           //My code which takes time.
      }
 }

 //-------------------------- To run the thread
 MyThread mThread = new MyThread();
 mThread.start();
</code></pre>

<p>On some external events i need to stop/destroy currently running thread.<br>
And Then i create a new copy of MyThread and call <code>start</code> function on the new thread to run it.   </p>

<p>But i am not able to destroy/stop the previous running thread.<br>
Is there any API by which we can destroy running thread. </p>
