Sub Camera1_Ready (Success As Boolean)
If Success Then
camEx.SetJpegQuality(90)
Log(camEx.GetSupportedFlashModes) 'here check first which modes are supported
camEx.SetFlashMode("torch") 'will turn it on into torch mode
camEx.CommitParameters
camEx.StartPreview
Log(camEx.GetPreviewSize)
Else
ToastMessageShow("Cannot open camera.", True)
End If
End Sub