title: How to turn on/off flashlight when camera in use?
body: <p>I'm creating an app that uses the camera and flashlight on android, the problem is that I need to turn flashlight on while the camera is running, I looked at some of the answers but none of them could help me, please help me?!</p>
  
  <p><a href="https://stackoverflow.com/questions/6068803/how-to-turn-on-front-flash-light-programmatically-in-android">How to turn on front flash light programmatically in Android?</a> this answer don't work for me, because in this answer is to turn on front flashlight, I need to turn the back flash on while the camera is running</p>