-1

I'm using https://github.com/commonsguy/cwac-provider to share files stored in "getExternalFilesDir", because Android FileProvider has no tag for this (although the documentation says it has, you know it's an old mistake in such documentation)

I understand that not every content shared with StreamProvider is a file, but having a "getUriFromFile" method would be useful. Since there is no such method, do I need to create the uris "manually"?

Sergio Viudes
  • 2,714
  • 5
  • 26
  • 44

1 Answers1

1

Since there is no such method, do I need to create the uris "manually"?

Yes.

I understand that not every content shared with StreamProvider is a file

Which is why I elected not to attempt to create such a method, at least at the present time.

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491