Let's digest the preceding code:
- We're defining some basic logic variables; we're taking basically a TextView, where we'll append our results and define the Firebase anonAuth variable. It's of FirebaseAuth type, which is the starting point for any authentication strategy that we might use.
- Over onCreate, we're initializing our Firebase reference and fixing our content view.
- We're going to authenticate our user by clicking a button bound with the anonLoginBtn() method. Within it, we're simply calling for the signInAnonymously() method, then if incomplete, we're testing if the authentication task is successful or not, else we're updating our TextEdit with the user information.
- We're using the updateUI method to simply update ...