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

Popular posts from this blog

PHP while loop dynamic rowspan -

timer - Java TimerTask cancel -

android - How to read a column value in parse.com without accessing an object or a pointer -