title: setText to an editText located in LoginActivity.java, from onAuthenticationSuceeded() method on FingerprintHandler.java
body: <p>setText to an editText located in LoginActivity.java, from onAuthenticationSuceeded() method on FingerprintHandler.java</p>
  
  <p>LoginActivity.java is connected with an xml file named activity_login.xml and has the editText username and password. When user's fingerprint is recognised, I need to setText for username and password however the onAuthenticationSuceeded() is located in FingerprintHandler.java which is not connected to any xml file.</p>
  
  <p>The code below in FingerprintHandler.java won't work, clearly because the username and password editTexts aren't clearly connected to the FingerprintHandler.java page except for  </p>
  
  <pre><code>@Override
      public void onAuthenticationSucceeded(FingerprintManager.AuthenticationResult result) {
  username.setText(loginPreferences.getString("username", ""));
  password.setText(loginPreferences.getString("password", ""));
  }
  </code></pre>
  
  <p>The only part where LoginActivity.java is connected to FingerprintHandler.java is via this code in LoginActivity:</p>
  
  <pre><code>FingerprintManager fingerprintManager = (FingerprintManager) getSystemService(FINGERPRINT_SERVICE);
          FingerprintHandler fingerprintHandler = new FingerprintHandler(this);
          fingerprintHandler.startAuth(fingerprintManager, null);
  </code></pre>
  
  <p>Any guidance appreciated thank you.</p>