Using setFlashMode - Android 2.2
<p>Want to switch light on/off and not succeeding.  Probably not getting the most from th documentation.  In any event, this is what I have tried.</p>

<p>Amongst the imports I have</p>

<pre><code>import android.hardware.Camera;
</code></pre>

<p>Within the body</p>

<pre><code>Camera myCamera;
.......
myCamera = Camera.open();
.......
Camera.Parameters myCameraParameters = myCamera.getParameters();
myCameraParameters.setFlashMode(FLASH_MODE_TORCH);
</code></pre>

<p>The above line brings up an error 'FLASH_MODE_TORCH cannot be resolved to a variable'  I am assuming that I am missing an import which defines FLASH_MODE_TORCH.</p>

<p>Anyine point me in the right direction?</p>

<p>IF I am missing an import, where should I go in the documentation to find out what imports are needed for what statements, constants .....</p>

<p>Regards,</p>

<p>Oliver</p>
