【发布时间】:2018-04-11 22:21:55
【问题描述】:
我想使用 android 7 api 获取指纹字节数据。为此,我正在关注本教程:Fingerprint API Tutorial
在本教程中,我有使用指纹 api 使用指纹对用户进行身份验证的指导。
public void startListening(FingerprintManager.CryptoObject cryptoObject) {
if (!isFingerprintAuthAvailable()) {
return;
}
mCancellationSignal = new CancellationSignal();
mSelfCancelled = false;
mFingerprintManager
.authenticate(cryptoObject, mCancellationSignal, 0 /* flags */, this, null);
mIcon.setImageResource(R.drawable.ic_fp_40px);
}
public void stopListening() {
if (mCancellationSignal != null) {
mSelfCancelled = true;
mCancellationSignal.cancel();
mCancellationSignal = null;
}
}
但我不需要使用 android api 验证用户的指纹数据。我只需要从 android api 捕获的指纹字节数据。我怎么能得到那个?
【问题讨论】:
标签: android fingerprint android-fingerprint-api