83.10 Starting the Biometric Prompt
All that remains is to add code to the authenticateUser() method to create and configure a BiometricPrompt instance and initiate the authentication. Add the authenticateUser() method as follows:
.
.
import android.view.View;
import android.content.DialogInterface;
.
.
public void authenticateUser(View view) {
BiometricPrompt biometricPrompt = new BiometricPrompt.Builder(this)
.setTitle("Biometric Demo")
.setSubtitle("Authentication is required to continue")
.setDescription("This app uses biometric authentication to protect your data.")
.setNegativeButton("Cancel", this...