-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
annatindall/Android-Image-Cropper
#1Description
I have this error..
Caused by: android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com.soin.TSA/cache/pickImageResult.jpeg exposed beyond app through ClipData.Item.getUri()
Looks like this happens on Android N
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
imageUri = Uri.parse(filepath);
} else{
imageUri = Uri.fromFile(new File(filepath));
}
The method getCaptureImageOutputUri() use Uri.fromFile
joelgetaction
Metadata
Metadata
Assignees
Labels
No labels