Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <provider
- android:name="com.example.sample.FileProvider"
- android:authorities="com.example.sample.provider"
- android:exported="false"
- android:grantUriPermissions="true" >
- <meta-data
- android:name="android.support.FILE_PROVIDER_PATHS"
- android:resource="@xml/paths" />
- </provider>
- java.lang.SecurityException: Permission Denial: opening provider com.example.sample.FileProvider from ProcessRecord{4079bd68 5637:com.google.android.apps.docs/10060} (pid=5637, uid=10060) requires null or null
- Intent intent = new Intent(Intent.ACTION_SEND);
- intent.setType("*/*");
- intent.putExtra(Intent.EXTRA_STREAM, uri);
- intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
- startActivity(intent);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement