Advertisement
Guest User

Untitled

a guest
Jul 30th, 2014
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. <provider
  2. android:name="com.example.sample.FileProvider"
  3. android:authorities="com.example.sample.provider"
  4. android:exported="false"
  5. android:grantUriPermissions="true" >
  6. <meta-data
  7. android:name="android.support.FILE_PROVIDER_PATHS"
  8. android:resource="@xml/paths" />
  9. </provider>
  10.  
  11. 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
  12.  
  13. Intent intent = new Intent(Intent.ACTION_SEND);
  14. intent.setType("*/*");
  15. intent.putExtra(Intent.EXTRA_STREAM, uri);
  16. intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
  17. startActivity(intent);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement