NiceGuy NiceGuy - 1 year ago 130
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 Source

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 
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download