Implementing flash for camera2 api android?
I am new in camera2 api. i want to implement front and back flash in camera2 when capturing. i can make sure that the front or back camera have or have not flash. (its not a flash light app, its a camera app)
fInfoForFlashBackFront= mCameraCharacteristics.get(CameraCharacteristics.FLASH_INFO_AVAILABLE);
And implementing flash.
//Implementing Flash
private void setFlash(CaptureRequest.Builder requestBuilder) {
Log.d(TAG, "onCreate: setFlash called ");
Log.d(TAG,...