title: How to detect whether the flashlight is on or off?
body: <p>I'm working on a game in which i need to check whether the flashlight is enabled.<br>
  So are there any parameters based on which I can check it.</p>
  
  <pre><code>camera.getParameters().getFlashMode().equals(Parameters.FLASH_MODE_TORCH)
  </code></pre>
  
  <p>This statement used to return true if the flashlight was turned ON, but this doesn't work now.</p>