简体   繁体   中英

Is backward compatibility for fingerprint sensor (< SDK 23) in android available?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM