Android how to know if flashlight is on -
i using cameramanager , cameracharacteristics
i know how check if flashlight turned on
try bit of code
public boolean flashstatus() { camera.parameters parameters = camera.getparameters(); if (parameters.getflashmode() == "flash_mode_torch") { return true; } if (parameters.getflashmode() == "flash_mode_off") { return false; } }
Comments
Post a Comment