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
Post a Comment