Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Use Fingerprint API in Android API 17

Recently, Google allowed developers to use Fingerprint API in Android 6.0 (API 23).

I have an android project with compiledSdkVersion 23 and minSdkVersion 17.

My question is: Can i use Fingerprint API in my project, i tried to use Google sample in my project but i have this error message:

Class Requires API level 23 (current min is 17)

if i can i will be grateful to any one gives me a good tutorial.

thank you

like image 722
Ahmed M. Abed Avatar asked Apr 22 '16 08:04

Ahmed M. Abed


People also ask

What is biometric API?

The biometric API provides three basic functions: Match biometric information on-card. Enroll users off-card and transfer their information on-card. Verify the user in a sequence of off-card and on-card interactions.

What is the latest API level of Android?

Beginning in August 2021, the Google Play Console requires that new apps target API level 30 (Android 11.0) or higher. Existing apps are required to target API level 30 or higher beginning in November 2021.


1 Answers

you can use Support Library v4 to support minSdk less than 23. You have to use class name accordingly e.g. FingerprintManagerCompat, etc.

Check this github sample

like image 52
nitinkumarp Avatar answered Sep 23 '22 13:09

nitinkumarp