android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com.gelakinetic.mtgfam/files/tmp.jpg exposed beyond app through ClipData.Item.getUri()

Hot problem!
This exception has a lot of traffic. You can help 20 users by writing a short tip.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by AEFeinstein
, 1 year ago
file:///storage/emulated/0/Android/data/com.gelakinetic.mtgfam/files/tmp.jpg exposed beyond app through ClipData.Item.getUri()
via GitHub by hatuongminh96
, 7 months ago
file:///storage/emulated/0/MoodlyPhotos/1490806824774.png exposed beyond app through ClipData.Item.getUri()
via GitHub by ldemay
, 1 year ago
file:///storage/emulated/0/AppName/AppName%20Pictures/061aafec-0acd-488d-b8b0-c7d5fb8c152a.jpg exposed beyond app through ClipData.Item.getUri()
via Stack Overflow by Hernan Razo
, 7 months ago
file:///storage/emulated/0/DCIM/testingImage.jpeg exposed beyond app through ClipData.Item.getUri()
via GitHub by HYVincent
, 11 months ago
file:///storage/emulated/0/DCIM/camera/IMG_20170110_201413.jpg exposed beyond app through ClipData.Item.getUri()
via Stack Overflow by lukini
, 4 months ago
file:///storage/sdcard0/Pictures/pyr/filename.jpg exposed beyond app through ClipData.Item.getUri()
android.os.FileUriExposedException: file:///storage/emulated/0/Android/data/com.gelakinetic.mtgfam/files/tmp.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.support.v4.app.BaseFragmentActivityJB.startActivityForResult(BaseFragmentActivityJB.java:48)
at com.gelakinetic.mtgfam.helpers.TutorCards$TutorCardsStartTask.onPostExecute(TutorCards.java:308)
at com.gelakinetic.mtgfam.helpers.TutorCards$TutorCardsStartTask.onPostExecute(TutorCards.java:269)
at android.os.AsyncTask.finish(AsyncTask.java:660)

Users with the same issue

4 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.