天道酬勤,学无止境

android-biometric

BiometricPrompt Executor and/or callback was null

I'm using BiometricPrompt from androidx.biometric:biometric:1.0.0-beta02 for the authenticate process. But i face very strange problem. First time i call biometricsPromt.authenticate() everything works fine, the library shows me the screen depending what security method is set(pattern,fingerprint, password and etc…) then the callback is called and everything is good. The problem is when i call biometricsPromt.authenticate() for the second time i got the error: E/DeviceCredentialHandler: onCreate: Executor and/or callback was null! I'm passing executor and callback of course -> they are not

2021-06-26 01:40:02    分类:问答    android   android-biometric-prompt   android-biometric

In Android 10 devices, Biometric prompt is failing with ERROR_CANCELED all the time on top of lock screen

In Android 10 devices, Biometric prompt is failing with BiometricPrompt.ERROR_CANCELED all the time on top of the lock screen. Error is returned in onAuthenticationError callback of BiometricPrompt.AuthenticationCallback class. The biometric prompt authentication is working when the device is unlocked. is it possible to have biometric prompt authentication done on top of device lock screen in Android 10 when setDeviceCredentialAllowed is set to true? Update: The issue is only when setDeviceCredentialAllowed is set to true. i.e if Devicekeyguard is made as fallback in BiometricPrompt , the

2021-06-03 14:26:40    分类:问答    android   lockscreen   android-10.0   android-biometric-prompt   android-biometric

How to save and compare 2 fingerprints on Android

I would like to integrate fingerprint in the authentication process for my project and then save and compare this fingerprint. I have tried integrate several pieces of code, but so far none have worked. How can I save and compare fingerprints in an Android app?

2021-05-12 21:24:17    分类:问答    android   security   fingerprint   biometrics   android-biometric