Code example for Camera.Parameters

Methods: getFlashMode, setFlashMode

0
		boolean present = cameraCheck();
		if(!present){
			message("Camera not found!"); 
			return; 
		} 
		if(p.getFlashMode() == Parameters.FLASH_MODE_OFF){
			p.setFlashMode(Parameters.FLASH_MODE_TORCH);
			cam.setParameters(p);
			cam.startPreview(); 
		} 
		else{ 
			p.setFlashMode(Parameters.FLASH_MODE_OFF)
			cam.setParameters(p);
			cam.startPreview(); 
		} 
	} 
	 
	public void lightOn(View v){
		 
		boolean present = cameraCheck();
		if(!present){