Firebase / Android - User loading by UID

I just found the code snippets to load the current logged in user:

FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();

But what if I need to load other user data, such as the path and image name? I want to load them with my UID.

I could naturally save the data like this:

-> users
    -> UID
        -> imagePath
        -> name

But I thought there might be a way to use the class FirebaserUser.

I really think that there must be some way, it just is not written in the documents .

+4
source share
1 answer

, FirebaseUser. Firebase 1.0 ( , Google) . .

Real-time database, uid . , , uid ( , ).

, , , , . , , , , .

+2

All Articles