android.os.FileUriExposedException: file:///storage/emulated/0/Demo/DemoPictures/test.jpg exposed beyond app through Intent.getData()

GitHub | rtalari | 4 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 46#253184676

    GitHub | 4 months ago | rtalari
    android.os.FileUriExposedException: file:///storage/emulated/0/Demo/DemoPictures/test.jpg exposed beyond app through Intent.getData()
  2. 0

    FileProvider

    Google Groups | 5 months ago | Jaume Tugores
    android.os.FileUriExposedException: file:///storage/emulated/0/pverd/JATUMA0000_trab_A161023001.pdf exposed beyond app through Intent.getData()
  3. 0

    FileUriExposedException

    GitHub | 7 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()
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    FileUriExposedException

    GitHub | 5 months ago | AEFeinstein
    android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com.gelakinetic.mtgfam/files/tmp.jpg exposed beyond app through ClipData.Item.getUri()
  6. 0

    Crash report 5.9: FileUriExposedException when taking a photo on Android 7

    GitHub | 5 months ago | maxme
    android.os.FileUriExposedException: file:///storage/emulated/0/DCIM/Camera/wp-1475452167052.jpg exposed beyond app through ClipData.Item.getUri()

    1 unregistered visitors
    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/Demo/DemoPictures/test.jpg exposed beyond app through Intent.getData()

      at android.os.StrictMode.onFileUriExposed()
    2. Android Platform
      Activity.startActivityForResult
      1. android.os.StrictMode.onFileUriExposed(StrictMode.java:1799)
      2. android.net.Uri.checkFileUriExposed(Uri.java:2346)
      3. android.content.Intent.prepareToLeaveProcess(Intent.java:8933)
      4. android.content.Intent.prepareToLeaveProcess(Intent.java:8894)
      5. android.app.Instrumentation.execStartActivity(Instrumentation.java:1517)
      6. android.app.Activity.startActivityForResult(Activity.java:4224)
      6 frames
    3. Android Support v4
      FragmentActivity.startActivityForResult
      1. android.support.v4.app.BaseFragmentActivityJB.startActivityForResult(BaseFragmentActivityJB.java:48)
      2. android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:75)
      2 frames
    4. Android Platform
      Activity.startActivityForResult
      1. android.app.Activity.startActivityForResult(Activity.java:4183)
      1 frame
    5. Android Support v4
      FragmentActivity.startActivityForResult
      1. android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:871)
      1 frame
    6. com.demo.fragments
      ProfileFragment.onImagesChosen
      1. com.demo.fragments.ProfileFragment.onImagesChosen(ProfileFragment.java:357)
      1 frame
    7. com.kbeanie.multipicker
      ImageProcessorThread$1.run
      1. com.kbeanie.multipicker.core.threads.ImageProcessorThread$1.run(ImageProcessorThread.java:52)
      1 frame
    8. Android Platform
      ActivityThread.main
      1. android.os.Handler.handleCallback(Handler.java:751)
      2. android.os.Handler.dispatchMessage(Handler.java:95)
      3. android.os.Looper.loop(Looper.java:154)
      4. android.app.ActivityThread.main(ActivityThread.java:6077)
      4 frames
    9. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    10. 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