android.os.FileUriExposedException: file:///storage/emulated/0/Pictures/QuoteCards/IMG_2017_01_09_17_03_19.png exposed beyond app through Intent.getData()

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 passiondroid
, 11 months ago
file:///storage/emulated/0/Pictures/QuoteCards/IMG_2017_01_09_17_03_19.png exposed beyond app through Intent.getData()
via Stack Overflow by Amey Bansod
, 11 months ago
file:///sdcard/unipunebuddy_data/timetables/Timetable.pdf exposed beyond app through Intent.getData()
via Google Groups by Jaume Tugores, 11 months ago
file:///storage/emulated/0/pverd/JATUMA0000_trab_A161023001.pdf exposed beyond app through Intent.getData()
via Stack Overflow by behelit
, 1 year ago
file:///android_asset/Page2.html exposed beyond app through Intent.getData()
via Stack Overflow by Rishabh Bhatia
, 1 year ago
file:///android_asset/2.html exposed beyond app through Intent.getData()
via GitHub by rtalari
, 1 year ago
file:///storage/emulated/0/Demo/DemoPictures/test.jpg exposed beyond app through Intent.getData()
android.os.FileUriExposedException: file:///storage/emulated/0/Pictures/QuoteCards/IMG_2017_01_09_17_03_19.png exposed beyond app through Intent.getData()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1813)
at android.net.Uri.checkFileUriExposed(Uri.java:2360)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8981)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8942)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1583)
at android.support.v4.app.BaseFragmentActivityJB.startActivityForResult(BaseFragmentActivityJB.java:50)
at android.app.Activity.startActivity(Activity.java:4515)
at android.app.Activity.startActivity(Activity.java:4483)
at com.quotes.app.cards.activity.MainActivity$4.onClick(MainActivity.java:376)

Users with the same issue

4 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 5 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.