title: Android, unbind service and onServiceDisconnected problem
body: <p>I'm not good in English, but I would try to explain my problem in good way.<br/></p>
  
  <p>So, the problem is:<br/>
  1) I have a local service<br/>
  2) I start it and then bound to it.
  3) Problem appears when I am about to close that service. <strong>onServiceDisconnected</strong> method from my implementation of class <strong>ServiceConnection</strong> is never called. If I close it manually (from settings), or by unbindService, or by stopService, or by combination of unbindService and stopService - <strong>onServiceDisconnected</strong> still doesn't to be called.
  What am I doing wrong?</p>
  
  <p>Short code is below:</p>
  
  <pre><code>protected ServiceConnection mServerConn = new ServiceConnection() {
      @Override
      public void onServiceConnected(ComponentName name, IBinder binder) {
          Log.d(LOG_TAG, "onServiceConnected");
      }
  
      @Override
      public void onServiceDisconnected(ComponentName name) {
          Log.d(LOG_TAG, "onServiceDisconnected");
      }
  }
  
  public void start() {
      // mContext is defined upper in code, I think it is not necessary to explain what is it 
      mContext.bindService(i, mServerConn, Context.BIND_AUTO_CREATE);
      mContext.startService(i);
  }
  
  public void stop() {
      mContext.stopService(new Intent(mContext, ServiceRemote.class));
      mContext.unbindService(mServerConn);
  }
  </code></pre>
  
  <p>I'm testing this code under emulator of Android 2.2</p>