Search code examples
androidfingerprintandroid-fingerprint-api

Check if a finger is placed on fingerprint sensor or not- Android


I'm looking for a way to detect (something like a fired event) if the finger is placed on fingerprint sensor on Android devices. I'm not looking for authentication using fingerprint sensor, I just need to check if the fingerprint sensor responds to a placed finger or not.

Appreciate your help, thanks.


Solution

  • You can only access the fingerprint sensor through the fingerprint authentication service. You would be able to tell if a fingerprint is on the sensor based on the response from the API of a success OR a failure, that would indicate that a finger is on the sensor either way.