Hello, what I need is to show the name of the users that I have in my Database, but I can not do it, could you help me please.
Each one is referenced by the user's password, thank you very much.
database = FirebaseDatabase.getInstance();
addU = database.getReference(bdreference.userRefence);
addU.addListenerForSingleValueEvent(new ValueEventListener() {
@Override
public void onDataChange(DataSnapshot dataSnapshot) {
key= dataSnapshot.getKey();
nombre=dataSnapshot.child(key).child("nombre").getValue(String.class);
Log.i("nombre",nombre);
}
@Override
public void onCancelled(DatabaseError databaseError) {
}
});