I want to share a file(.pdf,.apk etc) using share Intent, I searched google but I find only the code for sharing Image
Intent sharingIntent = new Intent(Inte
For sdk 24 and up, if you need to get the Uri of a file outside your app storage you have this error.
android.os.FileUriExposedException: file:///storage/emulated/0/MyApp/Camera_20180105_172234.jpg exposed beyond app through ClipData.Item.getUri()
to fix this : exposed beyond app through ClipData.Item.getUri