title: Android: How to Stop service that is started by bindService() with BIND_AUTO_CREATE option?
body: <p>I start service by using:</p>
  
  <pre><code>private ServiceConnection _serviceConnection = new ServiceConnection() {...}
  bindService(new Intent(this, MainService.class), _serviceConnection, Context.BIND_AUTO_CREATE);
  </code></pre>
  
  <p>I want to 'restart' the service. (Let's not argue why I want to do that)
  I do that by:</p>
  
  <pre><code>unbindService(_serviceConnection);
  // Do some initialization on service
  bindService(new Intent(this, MainService.class), _serviceConnection, Context.BIND_AUTO_CREATE);
  </code></pre>
  
  <p>I noticed service doesn't die(onDestroy doesn't run) until I call next bindService();
  So some static initialization I did on service got cleared by onDestroy() implementation.</p>
  
  <p>Question: How do you make sure unbindService() will stop service (run onDestory()),
  so that I could do initialization after and re-run bindService()?</p>