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

GitHub | Mathbl | 3 months ago
  1. 1

    SDK 24 - android.os.FileUriExposedException

    GitHub | 3 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 | 2 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 | 2 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

    Unable to take pictures Android N (Nexus 6P) (Targeting API 24)

    GitHub | 2 months ago | ilber
    android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/XXXXX.XXXXX.XXXXX_ng/files/Pictures/IMG_20161013_125120.jpg exposed beyond app through ClipData.Item.getUri()
  6. 0

    FileUriExposedException

    GitHub | 4 months ago | ldemay
    android.os.FileUriExposedException: file:///storage/emulated/0/AppName/AppName%20Pictures/061aafec-0acd-488d-b8b0-c7d5fb8c152a.jpg exposed beyond app through ClipData.Item.getUri()

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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