Re: [android-developers] Using ACTION_OPEN_DOCUMENT for editing files

2014-01-30 Thread Jeff Sharkey
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

Re: [android-developers] Using ACTION_OPEN_DOCUMENT for editing files

2014-01-30 Thread Dave Smith
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

[android-developers] Using ACTION_OPEN_DOCUMENT for editing files

2014-01-01 Thread Dave Smith
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