java – Face detection not working on working for samsung a-50-ThrowExceptions

Exception or error:

I am using android “android.hardware.Camera” API for capture photo in my application.

In android pie version camera.startFaceDetection() is getting exeption “java.lang.RuntimeException: start face detection failed”


Private selectedCamera =;


Please let me know if anyone has a solution for this
Thanks in advance.

How to solve:

Leave a Reply

Your email address will not be published. Required fields are marked *