title: How to fetch particular data from Firebase in Android
body: <p>I have integrated Google sign-in in my app and i am pushing some data in to fire base including user U-id.I had researched a lot and didn't get anything the problem i am facing that i want to fetch Particular data for eg If User A sign-in and push 5 data and Then User B sign-in and push 3 data.I want a query like if User A sing-in Again it will get his 5 data only and not the data which is pushed by User B.Thanks in Advance :)</p>
  
  <p>By using this it fetch all the data from firebase:</p>
  
  <pre><code> databaseReference.addValueEventListener(new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              for (DataSnapshot data : dataSnapshot.getChildren()) {
                  FirebaseModel firebasemodel = 
        data.getValue(FirebaseModel.class);
                  firebasemodels.add(firebasemodel);
              }
          }
  
          @Override
          public void onCancelled(DatabaseError databaseError) {
  
          }
      });
  </code></pre>
  
  <p>I have tried all that .child .orderby and .equalTo but did'nt work</p>
  
  <p>My Structure is Like:</p>
  
  <p><a href="https://i.stack.imgur.com/IpVZv.png" rel="nofollow noreferrer">My FireBase Structure</a></p>