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.
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.
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
}