ArthurHub / ArthurHub/Android-Image-Cropper
Android 11 issues while choose camera
- Dominant language
- Java
- Stars
- 6.4k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
Unable to get intent data **(data: Intent?**) in **onActivityResult** method while choose camera. Getting only null value.
But while choose gallery, I'm able to get image Uri.
It also happing in emulator, I'm getting the following error and app crashes
android.os.FileUriExposedException: file:///storage/emulated/0/............. exposed beyond app through **ClipData.Item.getUri()**
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the camera-selection path on Android 11 and inspect the onActivityResult entry point mentioned in the report, including the FileUriExposedException. Compare it with the working gallery path. Done means camera selection returns usable intent data or an image URI without the app crashing, while gallery selection continues to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100