title: Android service need onStop() method to stop running worker thread
body: <p>I have this problem. I have been looking around for answers, but to my surprise I can't find any good ones.</p>
  
  <p>I have a service which starts a new worker thread in <code>onStartCommand()</code> when <code>startService()</code> is called. Now I want to shut down the worker thread in the service when I call <code>stopService()</code>, but there is no <code>onStop()</code> method. <code>onDestroy()</code> doesn't get called either. Someone said that I need to use <code>onStartCommand()</code> with some special args in order to stop my service, but that seems totally backward!</p>
  
  <p>Once and for all: Why is there no <code>onStop()</code> method inside the Service class?</p>
  
  <p>How do I shut down my worker thread that resides inside the Service class?</p>
  
  <p>Also: where does the intent in <code>stopService(Intent intent)</code> go? Can I catch it?</p>