title: How to access these section of Firebase Database?
body: <p>I'm developing a <code>firebase</code> project in <code>Android</code>  where I need to display all info of all users on list view.<em>(For the following case in which I've provided image, my list view will have 4 information fields.)</em></p>
  
  <p><a href="https://i.stack.imgur.com/TAXs3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TAXs3.png" alt="enter image description here"></a></p>
  
  <p>But I don't know how to do that. I'm not understanding how to get <code>database reference</code> to the following fields <strong>marked in green</strong>(in provided image, for the user 2 it'll be same as for user1, just that I've not expanded the node) &amp; also how to have the loop structure to do the same.</p>
  
  <p>Btw, this is how I've entered data into Firebase Database:</p>
  
  <p>In <strong>MyActivity.java</strong></p>
  
  <pre><code>private void sendUserData()
  {
      FirebaseDatabase firebaseDatabase = FirebaseDatabase.getInstance();
      DatabaseReference databaseReference = firebaseDatabase.getReference(firebaseAuth.getUid()).child("Deals");
  
      UserProfile userProfile = new UserProfile(
          firebaseAuth.getUid(),
          name.getText().toString(),
          contact.getText().toString(),
          address.getText().toString(),
          startDate.getText().toString(),
          endDate.getText().toString()
      );
  
      databaseReference.child(formatter.format(date)).setValue(userProfile);
  }
  </code></pre>
  
  <p>Now, I wanna retrieve but I don't know how because I've never used Firebase before. I'm referring tutorials, but they don't address my problem.</p>