取消指纹扫描仪 [英] Cancel Fingerprint scanner
问题描述
我正在开发一个程序,该程序具有包括PIN和指纹的安全功能,但是现在我在输入密码(PIN或指纹)时遇到问题.合并正确的指纹是可以的,但是当我输入PIN码时,退出PIN和指纹活动后,机器会继续监听指纹,我知道这一点,因为当我单击主页"按钮时,机器仍会振动轻微,所以有没有办法停止听指纹?
I am working on a program that has a security function including a PIN and a fingerprint, but now I'm having a problem with entering the password (PIN or Fingerprint). Incorporating the correct fingerprints is fine, but when I enter the PIN code, after I exit the PIN and fingerprint activity, the machine continues to listen for fingerprints, I know this because when I click on the "home" button "The machine still vibrates slightly, so there is no way to stop listening to fingerprints?
推荐答案
When you start up the fingerprint reader, you pass in a CancellationSignal.
要取消时(可能在活动"的OnPause中),只需调用此对象的cancel
方法.
When you want to cancel (maybe in the OnPause on your Activity), just call the cancel
method of this object.
在此处有完整的示例.
这篇关于取消指纹扫描仪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!