title: Flashlight Camera2 API
body: <p>Can I use camera preview and flashlight at the same time in Android Camera2 API?</p>
  
  <p>When I try use <code>CameraManager.setTorchMode(String cameraId, boolean enabled)</code> it's work fine when camera is not opened. But when Camera is open and I try <code>setTorchMode</code> I receive this exception:</p>
  
  <blockquote>
    <p>CameraService: setTorchMode: torch mode of camera 0 is not available because camera is in use</p>
  </blockquote>