Skip to content
Advertisement

Android Studio – Firebase JAVA – Realtime Database (get value from DB and check if)

I’m studying Android Studio and Firebase to a do simple app. And is almost working.
How can I grab data from firebase and store it in one Variable to check user level?

JavaScript

So if the user has Value Ident = “associado” should be followed to AssociadoActivity.
Right now everyone is sent to AdminActivity.

JavaScript

Advertisement

Answer

Read this article to get data from firebase link

then just save your data in local storage like Preferencemanager

then open your activity according to your condition

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement