android - How does one retrieve the cameraID and use setTorchMode? -


so android m came out , has built in cameralight function called settorchmode. curious how worked parameters (string cameraid, boolean true/false). boolean dictates whether light on or off, how cameraid? know there's method called getcameraidlist, returns array of ids, not one. how know 1 in list use?

you should use cameramanager "getcameraidlist" function retrieve list of strings each represent active camera.


Comments

Popular posts from this blog

renaming files in a directory using python or R -

html - outline-style different in chrome compared to firefox and internet explorer -

ruby on rails - Carrierwave Timeout -