I am working on one of the application which need finger print name and detail and I am using below code
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
FingerprintManager fingerprintManager = (FingerprintManager) context.getSystemService(Context.FINGERPRINT_SERVICE);
if (!fingerprintManager.isHardwareDetected()) {
// Device doesn't support fingerprint authentication
System.out.println("CheckLockBroadCastReciever Device doesn't suppor");
} else if (!fingerprintManager.hasEnrolledFingerprints()) {
// User hasn't enrolled any fingerprints to authenticate with
System.out.println("CheckLockBroadCastReciever User hasn't enrolled any fingerprints");
} else {
// Everything is ready for fingerprint authentication
System.out.println("CheckLockBroadCastReciever Everything is ready for fingerprint ");
}
}