in HdrViewfinder/Application/src/main/java/com/example/android/hdrviewfinder/CameraOps.java [190:203]
private void startCameraSession() {
// Wait until both the camera device is open and the SurfaceView is ready
if (mCameraDevice == null || mSurfaces == null) return;
try {
mCameraDevice.createCaptureSession(
mSurfaces, mCameraSessionListener, mCameraHandler);
} catch (CameraAccessException e) {
String errorMessage = mErrorDisplayer.getErrorString(e);
mErrorDisplayer.showErrorDialog(errorMessage);
mCameraDevice.close();
mCameraDevice = null;
}
}