No Activity found to handle Intent { act=android.settings.BIOMETRIC_ENROLL (has extras) }

Viewed 1102

I am implementing fingerprint authentication on my app. If the user hasn't set up a fingerprint on his device. I am trying to open system settings for enrolling fingerprints. According to documentation(https://developer.android.com/training/sign-in/biometric-auth), this is the code for opening the setting activity for enrolling fingerprint.

 final Intent enrollIntent = new Intent(Settings.ACTION_BIOMETRIC_ENROLL);
    enrollIntent.putExtra(Settings.EXTRA_BIOMETRIC_AUTHENTICATORS_ALLOWED,
            BIOMETRIC_STRONG | DEVICE_CREDENTIAL);
    startActivityForResult(enrollIntent, REQUEST_CODE);

I have tested the app on two devices. In Samsung, the code is working. But in an Asus device, it is not working.

2 Answers

Make sure that you have added a fingerprint in device it will work (in sha'a Allah)

Related