Brian Gardner

Android BiometricPrompt

Brian Gardner | Feb 05, 2019

Since Android Marshmallow, we've had the FingerprintManager class which allows us to access the fingerprint hardware and allow the user to authenticate if they have a valid fingerprint enrolled on the device. As of Android P, the FingerprintManager is deprecated in favor of the BiometricPrompt API.

The reason for this is there are other types of biometric unlock options coming to Android, such as face unlock and iris unlock. The BiometricPrompt seeks to generalize the fingerprint unlock so that it can be applied to these other options in the future. The good news is, if you have used the FingerprintManager before, the BiometricPrompt implementation will be a breeze since the APIs are so similar.

In a previous screencast, we covered how to implement fingerprint unlock using the FingerprintManager. In this screencast, we’ll quickly review that implementation and then dive into setting up your application to use BiometricPrompt.

For the More Curious...

FingerPrint Authentication - Part 1
Better Biometrics in Android P
Android BiometricPrompt
BNR Guide to Android
Android & Kotlin Courses

Subscribers Only

Transcripts are for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Subscribers Only

Project files are only available for subscribers. Create an account today to access our collection of screencasts, skill packs, and more.

Need Help?

If you get stuck, try starting a discussion with Big Nerd Ranch experts in the community tab.

Related Screencasts

Explore other screencasts related to this topic.


12 minutes

In this video you will learn about ConstraintLayout. It will cover how to use the graphical editor, how to add constraints to your views and tweak their attributes to position them on screen, and it has an example of converting an existing layout to use ConstraintLayout.

Implementing Adaptive Icons in Android

6 minutes

Android Oreo introduces Adaptive Icons which allow device manufacturers to choose the outline, or mask, of all app icons on the device. This guarantees that all app icons will be uniform on each device, whether they be square, rounded, or circular. In this screencast, part 2 of the series, we'll now show you how to generate your icon to take advantage of this new Android O feature.

Firebase Cloud Storage

10 minutes

Firebase Cloud Storage provides an easy way to store files remotely and fetch them when needed. In this video learn the basics of the cloud storage api to upload, download, and delete files.

Mocking Basics

6 minutes

Unit testing your classes helps ensure that they work correctly based on controlled inputs but doing the setup can be painful if you have a lot of dependencies. Learn how to create mock objects using Mockito to simplify your setup and improve the readability of your tests.

App Shortcuts in Android

7 minutes

App shortcuts give you the ability to provide convenient shortcuts to specific actions in your application. They provide an entry point to different parts of your application. In this video learn how to implement app shortcuts and give your users quick access to the functionality they want.

Autosizing TextView

5 minutes

Android O has the ability to change the size of text in a TextView based on the size of the view. In this screencast learn how to add the autosizing and the different modes available.