コード例 #1
0
 @Override
 protected void tearDown() throws Exception {
   mHandlerThread.quitSafely();
   mHandler = null;
   mCameraListener = null;
   for (CameraHolder camera : mCameraHolders) {
     if (camera.isOpenned()) {
       camera.close();
       camera = null;
     }
   }
   super.tearDown();
 }
コード例 #2
0
 protected void closeCamera(String cameraId) throws Exception {
   CameraHolder camera = getCameraHolder(cameraId);
   camera.close();
 }