Beispiel #1
0
 /** Uninitialize camera. */
 private void uninitializeCamera() {
   // - If camera is initialized, uninitialied it.
   if (mEasyCamera != null) {
     mEasyCamera.stopPreview();
     mEasyCamera.close();
   }
 }
 @Override
 public void surfaceDestroyed(SurfaceHolder surfaceHolder) {
   // our app has only one screen, so we'll destroy the camera in the surface
   // if you are unsing with more screens, please move this code your activity
   mCamera.stopPreview();
   mCamera.close();
 }