Android 6.0 Marshmallow offers new features for developers and user. This post will help developers to teach how to add Fingerprint authentications to apps.
There are several advantages of using the fingerprint authentications
> Fast and easy to use
> Secured : fingerprint uniquely identifies
> Online transactions are safer
> Online transactions are safer
There are several steps you have to follow before using fingerprint, It could really seems quite complex but this post help you step by step.
* Verify that lock screen is secured by PIN, password or pattern
* Check at least on fingerprint is registered on your phone
* Get access to android keystore to store the key used to encrypt or decrypt an object
* Generate an encryption key and the cipher
* Start the authentication process
* Implement callback methods to handle authentication event
Pre-requisites Android SDK 26
Android build tool v26.0.1
Android support repository
Before starting our app should get permission to access the sensor and fingerprint from android core, It can be done by just adding permission tag in manifest.xml file
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
FingerprintAuthenticationDialogFragment.java
Small helper class to manage text/icon around fingerprint authentication UI.
0 comments:
Post a Comment