title: Firebase/Android: Get current user email
body: <p>I am trying to get the email address of the current user.
  I have the following code in my onCreate, but it isn't working:</p>
  
  <pre><code>FirebaseAuth.AuthStateListener authListener = new FirebaseAuth.AuthStateListener() {
      @Override
      public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {
          FirebaseUser firebaseUser = firebaseAuth.getCurrentUser();
          if (firebaseUser != null) {
              userEmail = firebaseUser.getEmail();
          }
      }
  };
  </code></pre>
  
  <p>Note that variable authListener at the top is "never used" according to my program. Not sure if this has anything to do with it. Does anyone know what could be wrong with the code I have above?</p>