Yep, you're right that checking FLAG_SUPPORTS_WRITE is the best way to
check if a write is allowed.
If you're really looking to focus on writing data, then
ACTION_CREATE_DOCUMENT might be a better fit, since it also lets the user
select an existing file, and it filters to only allow selection of
Thanks for the thoughts, Jeff.
I understand your reasoning, so perhaps the best course of action is to
modify the example documentation. The Edit a document section of the SAF
Guide
(https://developer.android.com/guide/topics/providers/document-provider.html#edit)
states that to edit a text
As far as I can tell from the documentation and testing with the new
Storage Access Framework and Intent.ACTION_OPEN_DOCUMENT, there doesn't
seem to be a way (via an extra or otherwise) to pass with the Intent
request to open a document to only return documents from providers that
support
3 matches
Mail list logo