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# - SharpDX Toolkit models rendering inside out -

c# - ajax - How to receive data both html and json from server? -