android.os.FileUriExposedException

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

Solutions on the web58

  • file:///storage/emulated/0/Download/myfile.png exposed beyond app through ClipData.Item.getUri()
  • via GitHub by gotev
    , 9 months ago
    file:///storage/emulated/0/Download/12716320_1029986900381445_2238459154914449891_o.jpg exposed beyond app through ClipData.Item.getUri()
  • file:///storage/emulated/0/Download/12716320_1029986900381445_2238459154914449891_o.jpg exposed beyond app through ClipData.Item.getUri()
  • Stack trace

    • 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 java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    4 times, 3 weeks ago
    Unknown user
    Once, 1 month ago
    Unknown user
    Once, 8 months ago