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

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -