Making a simple strobe light out of my camera's flash feature.
I can't figure out why I'm getting an error on lines 31 and 32 for the


cam.stopPreview();
cam.release();

Here's my activity;