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.
Amongst the imports I have
import android.hardware.Camera;
Within the body
Camera myCamera;
.......
myCamera = Camera.open();
.......
Camera.Parameters myCameraParameters = myCamera.getParameters();
myCameraParameters.setFlashMode(FLASH_MODE_TORCH);
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.
Anyine point me in the right direction?
IF I am missing an import, where should I go in the documentation to find out what imports are needed for what statements, constants .....
Regards,
Oliver