When I get this error code FINGERPRINT_ERROR_LOCKOUT I must wait 30 seconds to retry again but after 30 seconds when trying to put my finger again nothing will happen why? And can I cancel FingerprintManager.AuthenticationCallback after authenticating? Because I want to re-authenticate after getting the error code above.
Code
FingerprintManager fingerprintManager = (FingerprintManager) getSystemService(FINGERPRINT_SERVICE);
FingerprintManager.AuthenticationCallback authenticationCallback = new FingerprintManager.AuthenticationCallback() {
@Override
public void onAuthenticationError(int errorCode, CharSequence errString) {
super.onAuthenticationError(errorCode, errString);
Log.w("ABC", "101 - " + errorCode + " - " + errString);
}
@Override
public void onAuthenticationFailed() {
super.onAuthenticationFailed();
Log.w("ABC", "102");
}
@Override
public void onAuthenticationHelp(int helpCode, CharSequence helpString) {
super.onAuthenticationHelp(helpCode, helpString);
Log.w("ABC", "103 - " + helpCode + " - " + helpString);
}
@Override
public void onAuthenticationSucceeded(FingerprintManager.AuthenticationResult result) {
super.onAuthenticationSucceeded(result);
Log.w("ABC", "104");
}
};
fingerprintManager.authenticate(null, null, 0, authenticationCallback, null);
Any solutions?