app hanging on camera.release()
I'm working on a flashlight app using the camera flash. It seems to work fine but on occasion calling camera.release() causes a hang for about a minute or so. I've included the code below. I've looked at a bunch of examples and I don't see anything that could cause such a thing. Any ideas? //latest public void setOn(boolean on, Context context) { if (lock) { Log.i(TAG, "lock: true"); return; } if (on) { if (mCamera == null) { mCamera = Camera.open(); } Parameters params = mCamera.getParameters(); params.setFlashMode(MODE_TORCH); mCamera.setParameters(params); mCamera.startPreview(); } else {