Open dimawalaadormeo opened 6 years ago
I'm getting the same error using this block:
cameraConfig = new CameraConfig() .getBuilder(this) .setCameraFacing(sharedPreferences.getInt("camera", CameraFacing.REAR_FACING_CAMERA)) .setCameraResolution(CameraResolution.HIGH_RESOLUTION) .setImageFormat(CameraImageFormat.FORMAT_JPEG) .setImageRotation(sharedPreferences.getInt("rotation", CameraRotation.ROTATION_0)) .build();
Me too
Me too
When running the hidden camera using this code mCameraConfig = new CameraConfig() .getBuilder(this) .setCameraFacing(CameraFacing.FRONT_FACING_CAMERA) .setCameraResolution(CameraResolution.HIGH_RESOLUTION) .setImageFormat(CameraImageFormat.FORMAT_JPEG) .setImageRotation(CameraRotation.ROTATION_270) .build();
I keep getting App passed NULL surface error. The mCameraConfig has been properly constructed