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

GitHub | Mathbl | 8 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 1

    SDK 24 - android.os.FileUriExposedException

    GitHub | 8 months ago | Mathbl
    android.os.FileUriExposedException: file:///storage/emulated/0/Download/myfile.png exposed beyond app through ClipData.Item.getUri()
  2. 0

    FileUriExposedException on Android 7

    GitHub | 6 months ago | gotev
    android.os.FileUriExposedException: file:///storage/emulated/0/Download/12716320_1029986900381445_2238459154914449891_o.jpg exposed beyond app through ClipData.Item.getUri()
  3. 0

    Demo app: file picker not working on Android 7

    GitHub | 6 months ago | gotev
    android.os.FileUriExposedException: file:///storage/emulated/0/Download/12716320_1029986900381445_2238459154914449891_o.jpg exposed beyond app through ClipData.Item.getUri()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    File import crashes on Android 7.x due to file: scheme being used

    GitHub | 4 months ago | mendhak
    android.os.FileUriExposedException: file:///storage/emulated/0/gpslogger/xxxxxxx.gpx exposed beyond app through ClipData.Item.getUri()

    Root Cause Analysis

    1. android.os.FileUriExposedException

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

      at android.os.StrictMode.onFileUriExposed()
    2. Android Platform
      Activity.finish
      1. android.os.StrictMode.onFileUriExposed(StrictMode.java:1799)
      2. android.net.Uri.checkFileUriExposed(Uri.java:2346)
      3. android.content.ClipData.prepareToLeaveProcess(ClipData.java:832)
      4. android.content.Intent.prepareToLeaveProcess(Intent.java:8909)
      5. android.content.Intent.prepareToLeaveProcess(Intent.java:8894)
      6. android.app.Activity.finish(Activity.java:5188)
      7. android.app.Activity.finish(Activity.java:5208)
      7 frames
    3. com.nononsenseapps.filepicker
      AbstractFilePickerFragment$2.onClick
      1. com.nononsenseapps.filepicker.AbstractFilePickerActivity.onFilesPicked(AbstractFilePickerActivity.java:150)
      2. com.nononsenseapps.filepicker.AbstractFilePickerFragment.onClickOk(AbstractFilePickerFragment.java:206)
      3. com.nononsenseapps.filepicker.AbstractFilePickerFragment$2.onClick(AbstractFilePickerFragment.java:161)
      3 frames
    4. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:5610)
      2. android.view.View$PerformClick.run(View.java:22260)
      3. android.os.Handler.handleCallback(Handler.java:751)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:154)
      6. android.app.ActivityThread.main(ActivityThread.java:6077)
      6 frames
    5. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    6. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
      2 frames