Kill one thread in sleep mode in android
<p>I have an android application, that have one thread, which will run after each 1 minute.
So my problem is, when i click one button, i have to reset the app, that means, it'll be
a fresh app.
So now when i clicked on that button, all the database and shared preference will clear.
But the thread will start again.</p>

<p>Now am using like this</p>

<pre><code>if (killthread.isAlive()) {

           killthread.interrupt();                  


            }else {

              // Here what'll i do, I mean how to kill that thread, which in sleep mode.

}
</code></pre>

<p>Thank you
vishnu</p>
