title: Service won't stop when stopService method is called
body: <p>I currently have a Service that runs fine when I start it but when I try to stop it using the stopService method its onDestroy method doesn't get called.</p>
  
  <p>Here is the code I use to try to stop the Service</p>
  
  <p>stop_Scan_Button = (Button)findViewById(R.id.stopScanButton);</p>
  
  <pre><code>stop_Scan_Button.setOnClickListener(new View.OnClickListener(){
      public void onClick(View v){
          Log.d("DEBUGSERVICE", "Stop Button pressed");
          Intent service = new Intent(CiceroEngine. CICERO_SERVICE);
          releaseBind();
          Log.d("Stop_Scan_Button", "Service: " + service.toString());
          stopService(service);
          Log.d("Stop_Scan_Button", "Service should stop! ");
  
          }   
  });
  </code></pre>
  
  <p>Am I right in thinking that when stopService is used it calls the onDestroy method of the Service? When I press my stop scan button the <code>onDestroy()</code> method in my Service is not called.</p>
  
  <p>Is there anything else I am missing that I should put in to  stop the service?</p>
  
  <p>EDIT: to add <code>onServiceConnected()</code> gets called when stopService is run instead of <code>onServiceDisconnected()</code>, why would that be happening?</p>
  
  <p>EDIT:<strong>To add more info regards Binding</strong></p>
  
  <p>I call bindService in the onCreate() method and I then have the releaseBind() method unbind the Service.</p>
  
  <p>Here is the code for that method:</p>
  
  <pre><code> public void releaseBind(){
      unbindService(this);
    }
  </code></pre>
  
  <p>So I presume that the unbinding is not my problem?</p>