私は指紋名と詳細を必要とするアプリケーションの1つに取り組んでおり、以下のコードを使用しています
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 ");
}
}