title: Android service does not bind
body: <pre><code>@Override
  protected void onStart(){
      super.onStart();
      Intent musicIntent = new Intent( this, MusicService.class );
      startService(musicIntent);
      getApplicationContext().bindService( musicIntent, mConnection, BIND_AUTO_CREATE);
  }
  
  private ServiceConnection mConnection = new ServiceConnection() {
  
      @Override
      public void onServiceDisconnected(ComponentName name) {
          mBound = false;
          mService = null;
      }
  
      @Override
      public void onServiceConnected(ComponentName name, IBinder service) {
          mBound = true;
          LocalBinder binder = (LocalBinder) service;
          mService = binder.getService();
          Log.d(TAG, "Bound");
      }
  };
  </code></pre>
  
  <p>When I start a new activity I want to start a service as well and bind it so I can use some methods of that service. In the onStart() method I started the service and tried to bind it. As you can see when it's been bound it will show me in the LogCat. However, it never does! </p>
  
  <p>The Service itself will always be created and started (I put a <code>Log.d(..)</code> in both of the methods).</p>
  
  <p><strong>Manifest file :</strong>   </p>
  
  <pre><code>&lt;service android:name="com.ppp.p.MusicService"&gt;&lt;/service&gt;
  </code></pre>
  
  <p>What is wrong?</p>
  
  <p>Edit :</p>
  
  <pre><code>@Override
  public IBinder onBind(Intent intent) {
      return null;
  }
  </code></pre>