Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app passed NULL surface #38

Open
dimawalaadormeo opened this issue Jul 10, 2018 · 3 comments
Open

app passed NULL surface #38

dimawalaadormeo opened this issue Jul 10, 2018 · 3 comments

Comments

@dimawalaadormeo
Copy link

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

@rehab101
Copy link

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();

@JhoanesFreitas
Copy link

Me too

1 similar comment
@areemadev
Copy link

Me too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants