英文:
Choose a specific fingerprint to be used for authentication
问题
我有一个与指纹交互的安卓项目。用户希望该应用只能通过特定的指纹来打开。
例如,设备上有2个指纹,指纹-1
和 指纹-2
。因此,在打开应用时,用户只能使用 指纹-2
来解锁它。如何实现这一点?我还没有找到解决方案。
英文:
I have an Android project that interacts with fingerprints. The user wishes that the application can only be opened with certain fingerprints.
For example, say that on the device there are 2 fingerprints, fingerprint-1
and fingerprint-2
. So when opening the application, the user can only use fingerprint-2
to unlock it. How can this be done? I have not found a solution for this.
答案1
得分: 4
这在Android上使用内置的指纹扫描器是不可能的。按设计,没有API可以区分具体的指纹,因为它们都被视为属于同一用户。
如果您想要实现这一点,您需要一个额外的外部指纹扫描器连接到设备,以允许您区分不同的指纹。
英文:
This is not possible on Android with the built-in fingerprint scanner. By design, there is no API to differentiate between the specific fingerprints, as they are all considered to belong to the same user.
If you wanted to do this, you'd need an extra peripheral fingerprint scanner to connect to the device that allows you to differentiate between fingerprints.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论