If fingerprint scanner is available let user use my apps feature by authenticating with fingerprint.
Fingerprinting, iris and retina scans, facial IDs, and voice patterns are a part of the human body, and they cannot be replicated.
Tap the Settings icon on your Android device and tap Lock screen and security. Scroll down and tap Screen lock type. Add your fingerprint — follow the instructions on your screen and go through the wizard.
Thankfully you can add multiple fingerprints so you can unlock your phone however you hold it. From Settings, tap Biometrics and security, and then tap Fingerprints. Enter your secure screen lock credentials and then tap Add fingerprint.
Android. On an Android device running Lollipop, Marshmallow or N, head to Settings -> Security -> Fingerprint and then start the routine to add another fingerprint. You may be asked for your pin or passcode before registering a new fingerprint.
Try this code:
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
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With