android.os.FileUriExposedException: file:///storage/emulated/0/Download/myfile.png exposed beyond app through ClipData.Item.getUri()

Hot problem!
This exception has a lot of traffic. You can help 268 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by Mathbl
, 1 year ago
file:///storage/emulated/0/Download/myfile.png exposed beyond app through ClipData.Item.getUri()
via GitHub by gotev
, 1 year ago
file:///storage/emulated/0/Download/12716320_1029986900381445_2238459154914449891_o.jpg exposed beyond app through ClipData.Item.getUri()
via GitHub by gotev
, 1 year ago
file:///storage/emulated/0/Download/12716320_1029986900381445_2238459154914449891_o.jpg exposed beyond app through ClipData.Item.getUri()
via GitHub by mendhak
, 11 months ago
file:///storage/emulated/0/gpslogger/xxxxxxx.gpx exposed beyond app through ClipData.Item.getUri()
via GitHub by M-arcus
, 4 months ago
file:///storage/emulated/0/DCIM/Camera/IMG_20170720_180111.jpg exposed beyond app through ClipData.Item.getUri()
via GitHub by hatuongminh96
, 7 months ago
file:///storage/emulated/0/MoodlyPhotos/1490806824774.png exposed beyond app through ClipData.Item.getUri()
android.os.FileUriExposedException: file:///storage/emulated/0/Download/myfile.png exposed beyond app through ClipData.Item.getUri()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1799)
at android.net.Uri.checkFileUriExposed(Uri.java:2346)
at android.content.ClipData.prepareToLeaveProcess(ClipData.java:832)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8909)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8894)
at android.app.Activity.finish(Activity.java:5188)
at android.app.Activity.finish(Activity.java:5208)
at com.nononsenseapps.filepicker.AbstractFilePickerActivity.onFilesPicked(AbstractFilePickerActivity.java:150)
at com.nononsenseapps.filepicker.AbstractFilePickerFragment.onClickOk(AbstractFilePickerFragment.java:206)
at com.nononsenseapps.filepicker.AbstractFilePickerFragment$2.onClick(AbstractFilePickerFragment.java:161)
at android.view.View.performClick(View.java:5610)
at android.view.View$PerformClick.run(View.java:22260)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)

Users with the same issue

4 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.