-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
[BUG] - FileUriExposedException when trying to lunch only camera intent. #274
Comments
Duplicated of #253 |
Sorry @ArmChilingarov you are right, I'm reopening, but hopefully the PR I'm working will fix this too |
If possible please test To test this changes All feedbacks at #280 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
App gets crashed when I want to open only camera intent .
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.croppersample/com.canhub.cropper.CropImageActivity}: android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com.example.croppersample/cache/pickImageResult.jpeg exposed beyond app through ClipData.Item.getUri()
To Reproduce
Steps to reproduce the behavior:
in a crop image sample use this part of code.
private val customCropImage = registerForActivityResult(CropImageContract()) {
...
}
customCropImage.launch(
options {
setImagePickerContractOptions(PickImageContractOptions(false,true))
})
Media
Smartphone (please complete the following information):
Device: Xiaomi2 mi a2
OS: API Level 30
Device: Android emulator
OS: API Level 28, 29
@Canato
The text was updated successfully, but these errors were encountered: