title: Firebase Query get values
body: <p>I have a list of Child-Data and wants to have a certain value.</p>
  
  <p>My Firebase structure: </p>
  
  <p><a href="https://i.stack.imgur.com/DJOLS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DJOLS.png" alt="enter image description here"></a></p>
  
  <p>Now, I only have the Child "Text" and the currendUser "0zwtyRwgnogC8Qk91AtHj7amZb63"</p>
  
  <p>So how can I get the values of "text and "user_id"?</p>
  
  <p>My source code:</p>
  
  <pre><code> mDatabaseText = FirebaseDatabase.getInstance().getReference().child("Text");
      query = mDatabaseText.startAt(mCurrentUser.getUid());
      query.addValueEventListener(new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              if (dataSnapshot.exists()) {
                  for (DataSnapshot textSnapshot : dataSnapshot.getChildren()) {
  
                    /*  String text = textSnapshot.getKey();
                      Toast.makeText(getActivity(), text, Toast.LENGTH_SHORT).show(); */
  
                      TextModel textModel = chatSnapshot.getValue(TextModel.class);
  
                      String t = textModel.getText();
                      Log.i("!!!!!!!text", t);
                      Toast.makeText(getActivity(), t, Toast.LENGTH_SHORT).show();
                  }
              }
          }
  
          @Override
          public void onCancelled(DatabaseError databaseError) {
  
          }
      });
  </code></pre>
  
  <p>But this code doesn't work, why?</p>
  
  <p>I used the query <code>startAt</code>.</p>