Retrieving specific data from Firebase Database

前端 未结 2 2035
一整个雨季
一整个雨季 2021-02-09 04:16

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

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-09 04:43

    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();

提交回复
热议问题