Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android check for fingerprint scanner is available [duplicate]

Tags:

android

If fingerprint scanner is available let user use my apps feature by authenticating with fingerprint.

like image 839
Srikanth Kancheti Avatar asked Feb 16 '16 09:02

Srikanth Kancheti


People also ask

Can a fingerprint be duplicated?

Fingerprinting, iris and retina scans, facial IDs, and voice patterns are a part of the human body, and they cannot be replicated.

How do you check fingerprint on Android?

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.

Can you have 2 fingerprints on Samsung phone?

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.

Can you have two fingerprints on Android?

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.


1 Answers

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 
}
like image 148
Yev Kanivets Avatar answered Oct 13 '22 07:10

Yev Kanivets