How do I kill an Android thread completely?
<p>I have a service that has its own thread running on background. I'd like to kill that service including the thread. </p>

<p>I created the thread like this and run it.</p>

<pre><code> public class DaemonService extends Service {

     private DaemonThread thread;
     class DaemonThread extends Thread {
          public void run()
          {
               runDaemon(mArgv.toArray(), mConfig);
          }
     }

     public void onStart(Intent intent, int startId) {
          thread = new DaemonThread();
          thread.start();
     }
 }
</code></pre>

<p>How do I kill the service and the thread as well? I don't have to worry about data safety..</p>
