내 코드에서 사용자가 최대 시도 횟수를 초과하여 인증에 실패하면 사용자를 기본 페이지로 안내하기 만하며 사용자가 여전히 인증 페이지에 액세스하여 성공적으로 인증 될 때까지 시도를 계속할 수 있습니다. 그래서 여기 최대 시도 횟수를 초과하면 기능/버튼 차단
public void onAuthenticationFailed() {
//Add one to the number of attempts taken
attemptCount += 1;
if (attemptCount < maxAttemptAllowance) {
super.onAuthenticationFailed();
Toast.makeText(context, "Fingerprint Authentication Failed, Please Try Again", Toast.LENGTH_SHORT).show();
} else {
//here is where the system block user if they exceed the maximum attempts
Toast.makeText(context, "Exceed maximum attempts, try again in 5 minutes later", Toast.LENGTH_SHORT).show();
context.startActivity((new Intent(context, Main.class)));
}
}
, 내 질문은 사용자가 최대 시도를 초과하는 경우 어쨌든 난/제한/차단 기능을 해제하지만 5 분 동안이 아니라 전체 시스템을 수있다이다. 사전에
감사 만약 내가 정말이 문제