What is Firebase UI ?
As simple as i can explain, Firebase UI will provide us the easy way to creating login process even login using Facebook, Google account, Email or Twitter
With Firebase UI you don't need create your login form or other API to do login, Firebase UI will handle it all.
For achieve that goal, please follow the following steps :
Create Your Application On Firebase
Please go to firebase console and create your project
|Create firebase project|
After that, choose your platform, in this case choose Android Platform.
Add your SHA-1 key and your package name
|Add package name and SHA-1|
Download the google-service.json
After downloaded, place it inside your app folder. Please take a look at the following figure
Make sure your gradles are similar with the following gradles :
build.gradle(Project : YourProjectName)
build.gradle(Module : App)
Create your Android Studio Project
You just need 1 XML layout and 1 java class to create login process using Firebase UI. Here they are :
Write the following code to create a simple view.
Run your project, and may it running well. Thank you.
Download the project here : LINK GITHUB