title: Can I use on ServiceConnection for several Services
body: <p>I have several services that are similar and implement a <code>MyAbstractService</code> abstract class.</p>
  
  <pre><code>public Service1 extends MyAbstractService {
    // ...
  }
  
  public Service2 extends MyAbstractService {
    // ...
  }
  
  public abstract MyAbstractService extends Service {
    // ...
  }
  </code></pre>
  
  <p>Usually an activity binds to only one service.</p>
  
  <p>But I have an activity that needs to bind to all of them. I am wondering whether I can use one ServiceConnection</p>
  
  <pre><code>public void onCreate() {
      bindService(intentService1, mConnection);
      bindService(intentService2, mConnection);
  }
  
  private ServiceConnection mConnection = new  ServiceConnection() {
      @Override
      public void onServiceConnected(ComponentName name, IBinder service) {
          MyAbstractService.LocalBinder binder = (MyAbstractService.LocalBinder) service;
          MyAbstractService svc = binder.getService();
                      # The activity keeps all connected services in a HashMap
          mServices.put(name, svc);
      }
  };
  </code></pre>
  
  <p>Can I reuse the same <code>mConnection</code> or do I need to create one <code>ServiceConnection</code> per connected <code>Service</code>?</p>