While the code in this repo is still valid, have a look at FirebaseUI-Android for a more up to date library that handles Firebase Authentication on Android.
This demo Android app demonstrates authenticating with Firebase Login for Facebook, Google, Twitter, email & password, and anonymous.
- Sign up and create a new Firebase.
- Create apps for each provider on their developer consoles. See the Firebase authentication provider docs for more details.
- Enable Facebook, Google, Twitter, Email, and Anonymous providers on the Firebase Dashboard for your app. See the enabling providers section of the Firebase user authentication docs for more details.
- Populate all of the values in
res/values/keys.xml
.