>> ACTION_CREATE_DOCUMENT
>>
>> Activity Action: Allow the user to create a new document. When invoked, the system will display the various DocumentsProvider instances installed on the device, letting the user navigate through them.
I'm lost. It's just an abstraction (for making Google Drive, Gallery, Dropbox, etc look the same).
How does it help with saving attachments specifically on the "real" external memory card?
To be more specific. Existing code:
FileOutputStream ostream = new FileOutputStream(new File("/mnt/ext_sd/AquaMail Downloads", "foo.png"));
^^^ throws IOException (or SecurityException, I forget)
Let's say I replace it with SAF calls, prompting the user to create a new document and then saving there...
How would this document, picked through SAF, end up on the "real" external memory card?