1

私はラインを参照してください。安全なロック画面で デバイスの実装では、指紋センサを含むべきです。Androidで指紋スキャンを処理するapkを1つ維持できますか? <a href="https://static.googleusercontent.com/media/source.android.com/en//compatibility/android-cdd.pdf" rel="nofollow">Android Compatibility Definition for Android 6.0</a></p> <p>を通過しながら

これは、実行時にデバイスに指紋スキャナが搭載されているかどうかを判断する、私のアプリケーションの単一のバージョンを持つことができないということですか?それがスキャナを持っていると判断した場合は、指紋スキャンダイアログを起動します。そうでない場合は、PIN /パスワードを尋ねるだけです。

API 23よりもAndroidバージョンの方が同じapkを使用することはできますか?

+1

をチェックする必要がデバイスメーカー(それぞれファームウェア開発rs)、アプリ開発者向けではありません。 – Robert

答えて

1

あなたは、Androidの互換性の定義がためである

  • デバイスSDKのバージョン
  • 指紋ハードウェア存在
  • 指紋認証準備(既に登録済みの指紋)

    if (Build.VERSION.SDK_INT < 23) { 
        // Handle the mechanism where the SDK is older. 
    }else{ 
        // Handle the mechanism where the SDK is 23 or later. 
        FingerprintManager fingerprintManager = (FingerprintManager) context.getSystemService(Context.FINGERPRINT_SERVICE); 
        if (!fingerprintManager.isHardwareDetected()) { 
         // Device doesn't support fingerprint authentication  
        } else if (!fingerprintManager.hasEnrolledFingerprints()) { 
         // User hasn't enrolled any fingerprints to authenticate with 
        } else { 
         // Everything is ready for fingerprint authentication 
        } 
    } 
    
関連する問題

 関連する問題