android.os.FileUriExposedException: file:///storage/emulated/0/Download/2e5b188e-41fc-45ed-9a50-d5b67bcfa515.apk exposed beyond app through Intent.getData()

Hot problem!
This exception has a lot of traffic. You can help 19 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 candrews
, 1 year ago
file:///storage/emulated/0/Download/2e5b188e-41fc-45ed-9a50-d5b67bcfa515.apk exposed beyond app through Intent.getData()
via GitHub by passiondroid
, 10 months ago
file:///storage/emulated/0/Pictures/QuoteCards/IMG_2017_01_09_17_03_19.png exposed beyond app through Intent.getData()
via GitHub by dohoangn
, 2 months ago
file:///storage/emulated/0/invoice.pdf 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 GitHub by simonsmh
, 11 months ago
file:///storage/emulated/0/nmb/nimingban-1.2.30.apk exposed beyond app through Intent.getData()
via GitHub by myleshorton
, 10 months ago
file:///sdcard/Lantern.apk exposed beyond app through Intent.getData()
android.os.FileUriExposedException: file:///storage/emulated/0/Download/2e5b188e-41fc-45ed-9a50-d5b67bcfa515.apk exposed beyond app through Intent.getData()
at android.os.StrictMode.onFileUriExposed(StrictMode.java:1799)
at android.net.Uri.checkFileUriExposed(Uri.java:2346)
at android.content.Intent.prepareToLeaveProcess(Intent.java:8933)
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.app.Activity.startActivityForResult(Activity.java:4183)
at android.app.Activity.startActivity(Activity.java:4507)
at android.app.Activity.startActivity(Activity.java:4475)
at net.hockeyapp.android.tasks.DownloadFileTask.onPostExecute(DownloadFileTask.java:197)
at android.os.AsyncTask.finish(AsyncTask.java:660)

Users with the same issue

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

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