Comments (3)
代码
//初试化指纹
fingerprintIdentify = new FingerprintIdentify(MyApplication.context, new BaseFingerprint.FingerprintIdentifyExceptionListener() {
@OverRide
public void onCatchException(Throwable exception) {
showShortToast( exception.getLocalizedMessage());
Log.e("测试","exception+| "+exception.getLocalizedMessage());
}
});
点击开始校验
fingerBtn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Log.e("测试","kaishi");
showShortToast("开始");
fingerprintIdentify.startIdentify(MAX_AVAILABLE_TIMES, new FingerprintIdentifyListener() {
@Override
public void onSucceed() {
Log.e("测试","验证成功");
if (listener != null) {
Log.e("测试","验证成功");
listener.onIdentifySuccess();
}
}
@Override
public void onNotMatch(int availableTimes) {
showShortToast("onNotMatch");
Log.e("测试","onNotMatch");
if (listener != null) {
Log.e("测试","失败");
listener.onIdentifyFailed();
}
}
@Override
public void onFailed(boolean isDeviceLocked) {
showShortToast("onFailed");
Log.e("测试","onFailed");
if (listener != null) {
Log.e("测试","失败");
listener.onIdentifyFailed();
}
}
@Override
public void onStartFailedByDeviceLocked() {
showShortToast("onStartFailedByDeviceLocked");
Log.e("测试","onStartFailedByDeviceLocked");
if (listener != null) {
Log.e("测试","失败");
listener.onIdentifyFailed();
}
}
});
}
});
}
from fingerprintidentify.
看起来是空异常,你可以再自己调试下
from fingerprintidentify.
不好意思 我找到 谢谢 我刚想到这个问题 .. 尴尬里
from fingerprintidentify.
Related Issues (20)
- source and license for JAR files HOT 1
- 导入依赖出错 HOT 1
- Huawei Honor Magic2无法弹出指纹识别 HOT 6
- 想请问一下,onSucceed()时候,我能获取到匹配的是哪指纹列表中哪个指纹吗? HOT 1
- Hello!Could you give a function getDeviceLocked()?Thanks. HOT 2
- 华为输入密码之后出现"自动保存账号密码"弹窗时,点击取消此弹窗,指纹识别失效 HOT 1
- mi9识别没反应 HOT 3
- 华为手机Android 9 系统怎么使用,需要做什么特殊的处理 HOT 1
- 你好,未使用CryptoObject,可以考虑加一下吗? HOT 1
- Not work in background service HOT 1
- No handling for FINGERPRINT_ERROR_USER_CANCELED HOT 2
- 混淆打包警告,打包不成功 HOT 1
- 有指纹功能isFingerprintEnable返回false HOT 3
- Error processing 'com/samsung/android/sdk/pass/support/SdkSupporter.class' bytecode. HOT 1
- Doesn't work while using other apps HOT 3
- 感谢大佬
- JCenter and Bintray will not be maintained anymore HOT 1
- Please add com.wei.android.lib:fingerprintidentify:1.2.6 to Maven Central HOT 2
- Can i use FingerPrintIdentify in foreground service? HOT 1
- Not working in foreground service in Android 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fingerprintidentify.