[英]How to get name of fingerprint Android device?
I work with biometric fingerprint Android.我使用生物识别指纹 Android。 When we register a fingerprint at settings, we also store the name of a fingerprint.
当我们在设置中注册指纹时,我们也会存储指纹的名称。 My question is, is it possible we get the name of the fingerprint?
我的问题是,我们是否有可能获得指纹的名称? I have code just authentication fingerprint, but I need name of the fingerprint.
我只有验证指纹的代码,但我需要指纹的名称。 Thank you for help.
谢谢你的帮助。
biometricPrompt = new BiometricPrompt(activity, executor, new BiometricPrompt.AuthenticationCallback() {
@Override
public void onAuthenticationError(int errorCode, @NonNull CharSequence errString) {
super.onAuthenticationError(errorCode, errString);
if (errorCode == BiometricPrompt.ERROR_NEGATIVE_BUTTON) {
// user clicked negative button
if (dialogMessage!=null && dialogMessage.isShowing()) {
// Dismiss dialog
dialogMessage.dismiss();
stopHandler();
}
} else {
// Called when an unrecoverable error has been encountered and the operation is complete.
displayToastMessage("text", "", R.string.unrecoverable_error_has_been_encountered);
}
}
@Override
public void onAuthenticationSucceeded(@NonNull BiometricPrompt.AuthenticationResult result) {
super.onAuthenticationSucceeded(result);
// Sent data to server
showDialogBiometric();
}
@Override
public void onAuthenticationFailed() {
super.onAuthenticationFailed();
// Called when a biometric is valid but not recognized.
displayToastMessage("text", "", R.string.valid_biometric_not_recognized);
}
});
promptInfo = new BiometricPrompt.PromptInfo.Builder()
.setTitle(getString(R.string.attendance))
.setDescription(getString(R.string.absent_with_fingerprint))
.setNegativeButtonText(getString(R.string.cancel))
.build();
}
When we register a fingerprint at settings, we also store the name of a fingerprint
当我们在设置中注册指纹时,我们也会存储指纹的名称
Not necessarily.不必要。
is it possible we get the name of the fingerprint?
我们有可能得到指纹的名称吗?
No, sorry.不,对不起。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.