For apps targeting Android 7.0, the Android framework enforces the StrictMode API policy that prohibits exposing file:// URIs outside your app. If an intent containing a file URI leaves your app, the app fails with a FileUriExposedException exception.
For apps targeting Android 7.0, the Android framework enforces the StrictMode API policy that prohibits exposing
file://
URIs outside your app. If an intent containing a file URI leaves your app, the app fails with aFileUriExposedException
exception.Reference: https://developer.android.com/about/versions/nougat/android-7.0-changes
Best Regards