Wednesday, October 25, 2017

Fingerprint Authentication

                           

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 

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" /> 

Now we create mainActivity class to handle all authentication process.
FingerprintAuthenticationDialogFragment.java

Small helper class to manage text/icon around fingerprint authentication UI.

Related Posts:

  • Migrating Apps to Android O Google has taken the development world by surprise by announcing a developer release of Android O. While speculations are rife about what sweet the … Read More
  • Android Test4 1.  What does the Gargenta mean in his Design Philosophy when he says that the project will, “Always be whole and complete”?   … Read More
  • Android Test3 1.  What is a funny fact about the start of Android?   A )   It was orginaly going to be called UFO   … Read More
  • Permission requests in runtime of application As everyone knows Google as changed the permission access for android applications since Android API level >22, So Google suggested to grant permi… Read More
  • Add XML fonts in Android O As we all know Android has released its Android O preview for developers,now developer can download this preview version on there Android Studio vers… Read More

0 comments:

Post a Comment