4

i added fingerprint support in my app. for that i used the below code.

 Fingerprint fingerprintManager = 
    (FingerprintManager) getSystemService(FINGERPRINT_SERVICE);

and i successfully integrated fingerprint with my app in 6.0 OS versions. but i tried to install and open the app in below 6.0 OS versions like 4.0, 5.0.

i tried to open the app 4.4.2 device it get crashes. and then i just used the COMPAT.

 Fingerprint fingerprintManager = 
    (FingerprintManagerCompat) FingerprintManagerCompat.from(mActivity)

using the above scenario i got successfully installed on 6.0 devices but in belowcrashes on below 6.0 devices. any other method to solve the crash on below 6.0 devices.

Happy
  • 1,031
  • 10
  • 26

0 Answers0