I\'m creating a chat app on android using Firebase Database and Java. Whenever the user is first registered, it stores their username into the database under the nodes use
Try this you forgot about the getValue() that will return the value not the path mDatabase.child("users").child(UserID).child("profile").child("username").getValue().toString();