title: Listen to multiple database references
body: <p>I created a project in which I need to listen to multiple database locations at once.</p>
  
  <pre><code>{
    "A": [data-a],
    "B": [data-b],
    "C": [data-c]
  }
  </code></pre>
  
  <p>Whenever anything gets changed, added or deleted at location <code>A</code>, <code>B</code> or <code>C</code> I want to display the action which happened inside a <code>ListView</code> in Android.</p>
  
  <p>For one location I have been able to achieve this by adding the following code to my project.</p>
  
  <pre><code>DatabaseReference databaseReference = FirebaseDatabase.getInstance().getReference("A");
  databaseReference.addChildEventListener(new ChildEventListener() {
      @Override
      public void onChildAdded(DataSnapshot dataSnapshot, String s) {
      //Child got added
      }
  
      @Override
      public void onChildChanged(DataSnapshot dataSnapshot, String s) {
      //Child got changed
      }
  
      @Override
      public void onChildRemoved(DataSnapshot dataSnapshot) {
      //Child got removed
      }
  
      @Override
      public void onChildMoved(DataSnapshot dataSnapshot, String s) {
      //Child got moved
      }
  
      @Override
      public void onCancelled(DatabaseError databaseError) {
      //Some error happened
      }
  });
  </code></pre>
  
  <p>Now to my question. Do I need multiple listeners for each location or can I somehow get notified about all changes in a simpler way?</p>