android.os.FileUriExposedException: file:///storage/emulated/0/Apk%20Apps/%D8%A7%D8%B0%D9_1.7.0.0.apk exposed beyond app through ClipData.Item.getUri()


Solutions on the web70

Solution icon of stackoverflow
file:///storage/emulated/0/Apk%20Apps/%D8%A7%D8%B0%D9_1.7.0.0.apk exposed beyond app through ClipData.Item.getUri()

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

Solution icon of github
via GitHub by HYVincent
, 10 months ago
file:///storage/emulated/0/Android/data/cn.bingoogolapple.update.demo/files/apk/BGAUpdateDemo_v1.0.0.apk exposed beyond app through Intent.getData()

Solution icon of github
file:///storage/emulated/0/Download/2e5b188e-41fc-45ed-9a50-d5b67bcfa515.apk exposed beyond app through Intent.getData()

Solution icon of github
file:///storage/emulated/0/nmb/nimingban-1.2.30.apk exposed beyond app through Intent.getData()

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

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

Solution icon of stackoverflow
via Stack Overflow by Krzysztof Pokrywka
, 4 months ago
file:///storage/emulated/0/Android/data/pl.eltegps.smokkomunikator/images/gps_TEMP.jpg exposed beyond app through ClipData.Item.getUri()

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

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

Stack trace

android.os.FileUriExposedException: file:///storage/emulated/0/Apk%20Apps/%D8%A7%D8%B0%D9_1.7.0.0.apk 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:932)
	at android.support.v4.app.FragmentActivity$HostCallbacks.onStartActivityFromFragment(FragmentActivity.java:1047)
	at android.support.v4.app.Fragment.startActivity(Fragment.java:935)
	at android.support.v4.app.Fragment.startActivity(Fragment.java:924)
	at com.myapp.appbackup.fragment.RestoreFragment$3.onItemClick(RestoreFragment.java:174)
	at android.widget.AdapterView.performItemClick(AdapterView.java:310)
	at android.widget.AbsListView.performItemClick(AbsListView.java:1155)
	at android.widget.AbsListView$PerformClick.run(AbsListView.java:3126)
	at android.widget.AbsListView$3.run(AbsListView.java:4041)
	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, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 11 months ago