Is it possible to create an authentication from within my app that will validate the user with his device lock PIN? Any intent mechanism or something like that which will prompt the user for keying in his PIN code?
I have seen the DevicePolicyManager
, but I was unable to come up with. Anything conclusive?
Turn on biometrics in the Android device settingsOpen your phone's Settings and locate the security or biometrics menu. From this menu, set your biometrics preferences to fingerprint.
An online password is transmitted to the server -- it can be intercepted in transmission or stolen from a server. A PIN is local to the device -- it isn't transmitted anywhere and it isn't stored on the server.
PIN based Authentication. This option allows user to login to ZigBank Application using a PIN instead of user id and password. User can define a 4 or 6 digit numeric PIN for login. User also has the option of resetting his PIN and changing his alternate login method from PIN to any other method.
Began from Android 5.0, you can use KeyguardManager.createConfirmDeviceCredentialIntent()
This method will create an Intent, which can be used to start system authentication(pin/pattern/password).
For more information, refer doc and Confirm Credential sample.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With