title: Retrieving Data from Firebase with certain ID
body: <p>I have an ID of User, and i want to take his name from the firebase. So, i am trying to use orderByKey() method to find a certain user and after that, take information from his profile. But something goes wrong ...</p>
  
  <pre><code>reference = FirebaseDatabase.getInstance().getReference("Users");
      Query query = reference.orderByKey().equalTo(task.author_id);
      query.addListenerForSingleValueEvent(new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              fullName = dataSnapshot.getValue(User.class).getFullName();
          }
  
          @Override
          public void onCancelled(DatabaseError databaseError) {
  
          }
      });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/SCiTe.png" rel="nofollow noreferrer">Firebase Structure</a></p>