Category : android-fingerprint-api

In my mobile application, I have created a separate class file to implement the BiometricManager and BiometricPrompt to use the fingerprint authentication. I have to trigger the Biometric popup in three activities, so I created a common function in separate class file. But the BiometricPrompt object has three parameters such as activity, executor & authentication ..

Read more

dalvik.system.VMStack.getThreadStackTrace VMStack.java, line -2 android.os.RemoteException: Remote stack trace: at com.android.server.fingerprint.FingerprintService.isForegroundActivity(FingerprintService.java:1243) at com.android.server.fingerprint.FingerprintService.canUseFingerprint(FingerprintService.java:1310) at com.android.server.fingerprint.FingerprintService.canUseFingerprint(FingerprintService.java:1265) at com.android.server.fingerprint.FingerprintService.access$2500(FingerprintService.java:149) at com.android.server.fingerprint.FingerprintService$FingerprintServiceWrapper.authenticate(FingerprintService.java:2052) Source: Android..

Read more

In my app, I’m using androidX biometric support library 1.1.0. On all Android versions, my app is crashing. Here is the code snippet that I have used Exception: java.lang.IllegalStateException: Must be called from main thread of fragment host In: public boolean isFingerprintAuthAvailable(Context mContext) { BiometricManager biometricManager = BiometricManager.from(mContext); if (biometricManager.canAuthenticate() == BiometricManager.BIOMETRIC_ERROR_NO_HARDWARE) { return false; ..

Read more

We can provide custom UI in FingerprintManager Api but that is deprecated in API level 28. Now android has provided BiometricPrompt API and it’s is providing default fingerprint dialog. I have gone through many articles, blogs and tutorial but haven’t found any solution for adding custom UI instead of default dialog. Any suggestion or approach ..

Read more