title: How to get reference user UIDs as a parent from firebase database? #AskFirebase
body: <p><img src="https://i.stack.imgur.com/vNdGW.png" alt="This is my database in firebase"></p>
  
  <pre><code>DatabaseReference myDatabase=FirebaseDatabase.getInstance().getReference();
  
  private FirebaseAuth authData;
  private EditText number;
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState)
  {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_display_schedule);
  
      number= (EditText)findViewById(R.id.number);
  
      DatabaseReference lastdata=myDatabase.child("QExqazU73kTJllMFtsN0alwH6aq1").child("Schedule").child("Monday").child("Hour");
  
      lastdata.addValueEventListener(new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot)
          {
              String text= dataSnapshot.getValue(String.class);
              number.setText(text);
          }
  
          @Override
          public void onCancelled(DatabaseError databaseError) {
          }
      });
  }
  </code></pre>
  
  <p>In this part:</p>
  
  <pre><code>DatabaseReference lastdata=myDatabase.child("QExqazU73kTJllMFtsN0alwH6aq1").child("Schedule").child("Monday").child("Hour");
  </code></pre>
  
  <p>If I write user uid like that results are true. However, I want to get user uid which is belongs to users who are logged in.</p>
  
  <p>If I write </p>
  
  <pre><code>String user_id= authData.getCurrentUser().getUid();
  DatabaseReference userid_database=myDatabase.child(user_id).child("Schedule").child("Monday").child("Hour");
  </code></pre>
  
  <p>like that, program close and don't run again.</p>