CameraFragment icon indicating copy to clipboard operation
CameraFragment copied to clipboard

Not support for Android 8.0+ with FileProvider

Open mandanai opened this issue 6 years ago • 1 comments

Error: E/Camera2Manager: IOException preparing MediaRecorder: /storage/....

Please support for Android 8.0 with FileProvider

mandanai avatar Nov 23 '18 10:11 mandanai

Hello, I have similar problem. but my Exception is MediaRecorder : prepare failed This is my solution final CameraFragment cameraFragment = CameraFragment.newInstance(new Configuration.Builder() .setCamera(Configuration.CAMERA_FACE_REAR).setMediaAction(Configuration.MEDIA_ACTION_VIDEO).setVideoDuration(GlobalFlagBase.VIDEO_DURATION).setMediaQuality(Configuration.MEDIA_QUALITY_LOW).build());

In my case, i solved that set media quality is low

I hope it becomes a reference. good luck

ma3s1r0 avatar Feb 15 '19 12:02 ma3s1r0