2

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.

Abhishek Dhotre
  • 481
  • 4
  • 17
  • [FingerprintManager](https://developer.android.com/reference/android/hardware/fingerprint/FingerprintManager.html) – Al Lelopath Oct 03 '17 at 21:40

1 Answers1

1

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.

WoogieNoogie
  • 1,258
  • 1
  • 11
  • 21
  • If I'm not mistaken, for fingerprint authentication to work you first need to enroll fingerprint and also have security enabled on the device. I was looking for something simple in which the user just need to place the finger and sensor will detect it. – Abhishek Dhotre Oct 05 '17 at 19:22
  • As I said above, the only way to access a fingerprint sensor is through the authentication API. – WoogieNoogie Oct 05 '17 at 19:23