android / android/camera-samples
CameraXBasic photo gallery doesn't work
- Dominant language
- Kotlin
- Stars
- 5.5k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
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))
Contributor guide
Research direction
Start by running CameraXBasic on a Google Pixel API 29, taking a photo, and opening its thumbnail in the gallery. Trace the gallery image-loading entry point and the Glide URI/file handling shown in the report. Done means the photo displays in the gallery and the camera thumbnail remains visible after returning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100