I'd like to build an Android app using Firebase. Firebase provides demo code for a login screen https://github.com/firebase/firebase-login-demo-android .
But rather than making the user type in their account info, I'd like the user to be able to use the account(s) info that the user already entered in Android's centralized account manager.
I've seen the docs of the AccountManager object at https://developer.android.com/reference/android/accounts/AccountManager.html and the Firebase android authentication guide at https://www.firebase.com/docs/android/guide/user-auth.html, but I'm too much of a noob to grok how to put it all together.
Any advice/pointers/sample code would be appreciated. Or let me know if I'm barking up the wrong tree.