title: Listener doesn't work..It seems the Listener is 0
body: <p>Hey Guys I have this as MainActivity:</p>
  
  <pre><code>public class LoginActivity extends AppCompatActivity {
      public interface LoginListener {
          public void onLoginSuccess();
      }
  
      public void onLoginSuccess() {
          //logged in and do a few other things
      }
  }
  </code></pre>
  
  <p>And that's my second Activity from where I want to call the method onLoginSuccess() in my MainActivity, as you can see I am doing this with an Listener...</p>
  
  <pre><code>public class FingerprintHandler extends FingerprintManager.AuthenticationCallback {
  
      private LoginActivity.LoginListener mListener;
  
      public void onAuthenticationSucceeded(FingerprintManager.AuthenticationResult result) {
          if (mListener != null) {
              mListener.onLoginSuccess();
          }
          else{
              Toast.makeText((Activity)context, "Listener is 0", Toast.LENGTH_LONG).show();
          }
      }
  }
  </code></pre>
  
  <p>MY problem is that I everytime I try it I get back: "Listener is 0" from my Toast...SO what's wrong?</p>