NiceGuy NiceGuy - 1 month ago 22
Android Question

Callback/broadcast for Adding/Removing fingerprint from android device

Is there any callback or broadcast send when you are adding/removing a fingerprint from the device.

Is there a way to find the ID of the fingerprints if there are multiple fingerprints.

Any help is much appreciated.

Answer

No, there's no callback for this. You have to check if some fingerprints are enrolled each time, as this:

FingerprintManager fingerprintManager = (FingerprintManager) context.getSystemService(Context.FINGERPRINT_SERVICE);
if (!fingerprintManager.isHardwareDetected()) {
    // Device doesn't support fingerprint authentication     
} else if (!fingerprintManager.hasEnrolledFingerprints()) {
    // User hasn't enrolled any fingerprints to authenticate with 
} else {
    // Everything is ready for fingerprint authentication 
}
Comments