Android - file provider - permission denial
I have two apps : app1 and app2. App2 has : <provider android:name="android.support.v4.content.FileProvider" android:authorities="com.android.provider.ImageSharing" android:exported="false" android:grantUriPermissions="true" > <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/paths" /> </provider> paths.xml : <paths> <files-path name="my_images" path="images/"/> </paths> App2 receives request in its Activity from App1 to get URI for an image. The App2 Activity does the following once URI is decided : Intent intent = new Intent(); intent.setDataAndType