My main application uses min SDK version 19. In my onCreate() I have checked whether the device supports fingerprint hardware or not. If the device supports fingerprint sensor then it will show the OS level fingerprint dialog else it will continue with the login screen. I am unable to use the fingerprint helper class since it requires min SDK 23. Is there any backward compatibility available to achieve this scenario? Examples and links would be highly appreciated.
Asked
Active
Viewed 412 times
0
-
1you can refer my sample code in my github : https://github.com/rmkrishna/FingerPrint – Muthukrishnan Rajendran Jan 19 '17 at 12:15
-
@MuthukrishnanRajendran I have tried your code. It is working fine. Thank you for your help. Need a another small help. Is it possible to add the fingerprint dialog using fingerprint manager in this code? – Aparajita Sinha Jan 20 '17 at 05:52
-
yes, you can add a dialog and add the Finger print listener in that. – Muthukrishnan Rajendran Jan 20 '17 at 15:15
-
@MuthukrishnanRajendran can you please add the same in the above repo? – Aparajita Sinha Jan 21 '17 at 07:26
-
Sure tonight I will add. – Muthukrishnan Rajendran Jan 21 '17 at 11:55
1 Answers
0
Use @TargetSdk(23) on top of the helperClass that generates the error. Make sure to only call it once you have verified that the user has the appropriate hardware/software.

MrClippy
- 1
- 2