Update CameraActivity.java

SurfaceView operations moved from onCreate to onResume.
Changed some objects Boolean to primitive boolean.