android指纹java_java – 在Android应用程序中注册用户指纹

对不起,但据我所知,无法注册指纹.用户应在设置中注册他/她的手指.您只需检查用户指纹以进行身份??验证.如果没有注册手指或没有指纹传感器,请轻松烘烤.

//Check whether the device has a fingerprint sensor//

if (!mFingerprintManager.isHardwareDetected()) {

// If a fingerprint sensor isn’t available, then inform the user that they’ll be unable to use your app’s fingerprint functionality//

textView.setText("Your device doesn't support fingerprint authentication");

}

//Check whether the user has granted your app the USE_FINGERPRINT permission//

if (ActivityCompat.checkSelfPermission(this, Manifest.permission.USE_FINGERPRINT) != PackageManager.PERMISSION_GRANTED) {

// If your app doesn't have this permission, then display the following text//

Toast.makeText(EnterPinActivity.this, "Please enable the fingerprint permission", Toast.LENGTH_LONG).show();

}

//Check that the user has registered at

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值