gpt4 book ai didi

android - 为Android实现指纹认证

转载 作者:行者123 更新时间:2023-12-02 17:51:32 24 4
gpt4 key购买 nike

我非常有兴趣学习如何开发使用指纹认证的Android应用程序

我如何实现指纹认证?

最佳答案

<强> Fingerprint Authentication是你想要的:

This release offers new APIs to let you authenticate users by using their fingerprint scans on supported devices, Use these APIs in conjunction with the Android Keystore system.

To authenticate users via fingerprint scan, get an instance of the new FingerprintManager class and call the authenticate() method. Your app must be running on a compatible device with a fingerprint sensor. You must implement the user interface for the fingerprint authentication flow on your app, and use the standard Android fingerprint icon in your UI. The Android fingerprint icon (c_fp_40px.png) is included in the Fingerprint Dialog sample. If you are developing multiple apps that use fingerprint authentication, note that each app must authenticate the user’s fingerprint independently.

To use this feature in your app, first add the USE_FINGERPRINT permission in your manifest.

<uses-permission
android:name="android.permission.USE_FINGERPRINT" />

要查看指纹身份验证的应用实现,请参阅Fingerprint Dialog sample 。有关如何将这些身份验证 API 与其他 Android API 结合使用的演示,请观看视频 Fingerprint and Payment APIs .

关于android - 为Android实现指纹认证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34807574/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com