android.os.FileUriExposedException

file:///storage/emulated/0/Pictures/JPEG_20170330135039_1219814178.jpg exposed beyond app through ClipData.Item.getUri()


Solutions on the web63

Solution icon of github
via GitHub by AhmedBadrSayed
, 2 months ago
file:///storage/emulated/0/Pictures/JPEG_20170330135039_1219814178.jpg exposed beyond app through ClipData.Item.getUri()

Solution icon of github
via GitHub by Dan2anderson
, 8 months ago
file:///storage/emulated/0/Android/data/com.salesrabbit.android.sales.universal/files/Pictures/cameraOutput1481305062027.jpg exposed beyond app through ClipData.Item.getUri()

Solution icon of github
file:///storage/emulated/0/Android/data/XXXXX.XXXXX.XXXXX_ng/files/Pictures/IMG_20161013_125120.jpg exposed beyond app through ClipData.Item.getUri()

Solution icon of stackoverflow
via Stack Overflow by inquiindian
, 4 months ago
file:///storage/emulated/0/Pictures/I_20170322_151335_1517517949.jpg exposed beyond app through ClipData.Item.getUri()v

Solution icon of github
via GitHub by josealfonsomora
, 9 months ago
file:///storage/emulated/0/Android/data/com.project.me/files/Pictures/cameraOutput1477575034574.jpg exposed beyond app through ClipData.Item.getUri()

Solution icon of stackoverflow
file:///storage/emulated/0/Pictures/OrbotCamera/IMG_20170716_191205.jpg exposed beyond app through ClipData.Item.getUri()

Solution icon of github
file:///storage/emulated/0/Pictures/JPEG_20170208115930_1243992149.jpg exposed beyond app through ClipData.Item.getUri()

Solution icon of stackoverflow
file:///storage/emulated/0/Pictures/22%3A23%3A54.jpg exposed beyond app through ClipData.Item.getUri()

Solution icon of stackoverflow
file:///storage/emulated/0/Android/data/com.plen.myapp/files/Pictures/IMG_20161214_1516561294620205.jpg exposed beyond app through ClipData.Item.getUri()

Solution icon of stackoverflow
file:///storage/emulated/0/Pictures/I_20170322_143627_802299467.jpg exposed beyond app through ClipData.Item.getUri()

Stack trace

  • android.os.FileUriExposedException: file:///storage/emulated/0/Pictures/JPEG_20170330135039_1219814178.jpg 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.Instrumentation.execStartActivity(Instrumentation.java:1517) at android.app.Activity.startActivityForResult(Activity.java:4224) at android.support.v4.app.BaseFragmentActivityJB.startActivityForResult(BaseFragmentActivityJB.java:50) at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:79) at android.support.v4.app.ActivityCompatJB.startActivityForResult(ActivityCompatJB.java:30) at android.support.v4.app.ActivityCompat.startActivityForResult(ActivityCompat.java:146) at android.support.v4.app.FragmentActivity.startActivityFromFragment(FragmentActivity.java:937) at android.support.v4.app.FragmentActivity$HostCallbacks.onStartActivityFromFragment(FragmentActivity.java:1047) at android.support.v4.app.Fragment.startActivityForResult(Fragment.java:959) at android.support.v4.app.Fragment.startActivityForResult(Fragment.java:948) at gun0912.tedbottompicker.TedBottomPicker.startCameraIntent(TedBottomPicker.java:189) at gun0912.tedbottompicker.TedBottomPicker.access$000(TedBottomPicker.java:44) at gun0912.tedbottompicker.TedBottomPicker$2.onItemClick(TedBottomPicker.java:138) at gun0912.tedbottompicker.adapter.ImageGalleryAdapter$1.onClick(ImageGalleryAdapter.java:131) at android.view.View.performClick(View.java:5609) at android.view.View$PerformClick.run(View.java:22262) 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, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 9 months ago