I am using CameraManager and CameraCharacteristics
I would like to know how to check if the flashlight is turned on
I am using CameraManager and CameraCharacteristics
I would like to know how to check if the flashlight is turned on
Try this bit of code
public boolean FlashStatus() {
Camera.Parameters parameters = camera.getParameters();
return parameters.getFlashMode() == "FLASH_MODE_TORCH";
}