title: Android - Camera2 : "Unknow Error" the second time
body: <p>I use the Camera2 object to take a photo.
  It works like a charm the first time, but I receive an "Unknow Error" (through the OnErrorListener) the second time.</p>
  
  <p>My question is : Do I need to close/release manually the CameraDevice after <strong>onConfigured</strong> ? :</p>
  
  <pre><code>public void onConfigured(CameraCaptureSession cameraCaptureSession) {
      try {
          CaptureRequest.Builder requestBuilder = cameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_STILL_CAPTURE);
          requestBuilder.addTarget(imageReader.getSurface());
          requestBuilder.set(CaptureRequest.CONTROL_AF_MODE, CaptureRequest.CONTROL_AF_MODE_CONTINUOUS_PICTURE);
          cameraCaptureSession.capture(requestBuilder.build(), null, null);
  
      } catch (CameraAccessException exception) {
          exception.printStackTrace();
      }
  }
  </code></pre>