title: How to get User id from Firebase in android?
body: <p><a href="https://i.stack.imgur.com/0tWz5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0tWz5.png" alt="I want to retrieve the circled part from my firebase database"></a></p>
  
  <p>I have Done this:</p>
  
  <pre><code> adapter.getRef(currentPosition).addChildEventListener(new ChildEventListener() {
          @Override
          public void onChildAdded(DataSnapshot dataSnapshot, String s) {
             adapterKey =  dataSnapshot.getChildren().toString();
             Log.i("adapterKey",adapterKey);
          }
  
          @Override
          public void onChildChanged(DataSnapshot dataSnapshot, String s) {
  
          }
  
          @Override
          public void onChildRemoved(DataSnapshot dataSnapshot) {
  
          }
  
          @Override
          public void onChildMoved(DataSnapshot dataSnapshot, String s) {
  
          }
  
          @Override
          public void onCancelled(DatabaseError databaseError) {
  
          }
      });
  </code></pre>
  
  <p>I want to retrieve the Id's generated by <code>firebase</code> in order to access the inner data to <code>EndUsers</code> node. How can I do that?</p>