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

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • App crashing on Android Nougat
    via GitHub by passiondroid
    ,
  • FileProvider
    via by Jaume Tugores,
  • GitHub comment 397#271612986
    via GitHub by coffeemakr
    ,
  • How to open .xlsx files in Android?
    via Stack Overflow by Dann
    ,
  • FileUriExposedException
    via GitHub by ldemay
    ,
  • FileUriExposedException
    via GitHub by AEFeinstein
    ,
  • GitHub comment 46#253184676
    via GitHub by rtalari
    ,
    • 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.app.Activity.startActivityForResult(Activity.java:4228) at android.support.v4.app.BaseFragmentActivityJB.startActivityForResult(BaseFragmentActivityJB.java:50) at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:79) at android.app.Activity.startActivityForResult(Activity.java:4187) at android.support.v4.app.FragmentActivity.startActivityForResult(FragmentActivity.java:859) 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

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,