[android-developers] Using ACTION_OPEN_DOCUMENT for editing files
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 writing (i.e. have FLAG_SUPPORTS_WRITE set). Instead, we are forced to check a document selection made by the user (via a metadata query) to determine if the document supports write before we attempt to open an OutputStream or ParcelFileDescriptor in "w" mode. Is this correct, or have I overlooked something?
Feedback appreciated for anything I may have missed here. As it stands, suggesting that developers use ACTION_OPEN_DOCUMENT for in-place editing doesn't seem like a viable approach.
Dave Smith
@devuwired
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home