I am building an app on android studio, I have connected the project to the Firebase (Real time database).
I have two types of accounts, business acc and regular acc, when the user logs in, based on his information (email, password), I want to know which page I want to send him to (the HomeActivity for business or for regulars).
So based on the structure of my database, I want to search for the email of a certain user and if I find it, I want to see, if it belongs to User Business or User Regular.
How can I do that by code in java? Thank you.
Database Structure :
