public void capturePhoto() throws Exception {
  mCamera.takePicture(shutterCallback,rawCallback,jpegCallback);
  Thread.sleep(WAIT_GENERIC);
  mCamera.stopPreview();
  mCamera.release();
}

public void capturePhoto ( ) throws Exception { mCamera . takePicture ( shutterCallback , rawCallback , jpegCallback ) ; Thread . sleep ( WAIT_GENERIC ) ; mCamera . stopPreview ( ) ; mCamera . release ( ) ; }
helper method for taking a photo
