title: firebase android how to get current user information from database?
body: <p>Im new with firebase I don't know how to show firebase current user information in my profile activity java this is my current code</p>
  
  <pre><code>databaseReference.addValueEventListener(new ValueEventListener() {
          @Override
          public void onDataChange(DataSnapshot dataSnapshot) {
              showData(dataSnapshot);
          }
  
          @Override
          public void onCancelled(DatabaseError databaseError) {
  
          }
      });
  private void showData(DataSnapshot dataSnapshot) {
      for(DataSnapshot ds : dataSnapshot.getChildren()){
          DataUser uinfo = new DataUser();
  
          uinfo.SetName(ds.child(Userid).getValue(DataUser.class).name);
          uinfo.SetDOB(ds.child(Userid).getValue(DataUser.class).name);
  
  
      }
  }
  </code></pre>
  
  <p>And this is my dataview java for the setter getter</p>
  
  <pre><code>public class DataUser {
  
  String name, DOB;
  
  public DataUser(){
  }
  
  public void SetName(String name){
      this.name = name;
  }
  public String getName(){
      return name;
  }
  public void SetDOB(String DOB){
      this.DOB = DOB;
  }
  public String getDOB(){
      return DOB;
  }
  
  }
  </code></pre>
  
  <p>My question is my code correct? And I got text view for both name and dob but I don't know how to make them show the userinformation that I already call in my code?</p>