How to perform manual (Touch) focus with flash using Android camera2 api?
My captureRequest settings are: 1. type - TEMPLATE_PREVIEW 2. CONTROL_AE_MODE - CONTROL_AE_MODE_OFF 3. FLASH_MODE - FLASH_MODE_SINGLE 4. CONTROL_AF_TRIGGER - CONTROL_AF_TRIGGER_START
usage:
CaptureSession.capture(captureRequest.build(), captureCallback, null);
Result: Camera get focused if there is enough light. Otherwise flash blinks very fast and focus fails.
you can try to perform manual (Touch) focus with flash by this way:
when use TRIGGER,use both AE and AF:
and then: