Can I use camera preview and flashlight at the same time in Android Camera2 API?
When I try use CameraManager.setTorchMode(String cameraId, boolean enabled)
it's work fine when camera is not opened. But when Camera is open and I try setTorchMode
I receive this exception:
CameraService: setTorchMode: torch mode of camera 0 is not available because camera is in use