camera-samples icon indicating copy to clipboard operation
camera-samples copied to clipboard

CameraXBasic photo gallery doesn't work

Open v-hogood opened this issue 2 years ago • 0 comments

Run CameraXBasic, take a photo, tap the thumbnail. The page in the gallery is black. Go back to the camera, the thumbnail is now gone (transparent).

This is on a Google Pixel API 29.

Probably should be passing Glide URIs not Files?

2023-02-02 08:58:57.334 8843-8843/com.android.example.cameraxbasic W/Glide: Load failed for /storage/emulated/0/Pictures/CameraX Basic/2023-02-02-08-58-53-658.jpg with size [1080x1920] class com.bumptech.glide.load.engine.GlideException: Failed to load resource There were 3 root causes: java.io.FileNotFoundException(/storage/emulated/0/Pictures/CameraX Basic/2023-02-02-08-58-53-658.jpg: open failed: EACCES (Permission denied)) java.io.FileNotFoundException(/storage/emulated/0/Pictures/CameraX Basic/2023-02-02-08-58-53-658.jpg: open failed: EACCES (Permission denied)) java.io.FileNotFoundException(open failed: EACCES (Permission denied))

v-hogood avatar Feb 02 '23 17:02 v-hogood