zhang zhang - 3 months ago 36
Android Question

android 4.4 SAF Write file into SD

As you know,I want to save a text file into flash disk connected by otg line.On Adnroid4.4(API19),does it can create directory?I know how to save a file,but it have to click save button.I have a list of files have to save and save into different folders.So can android4.4 can realize this?I do not want to click the save button always.Can i save the file into flash disk directly by uri?
enter image description here


If you can pick directories with action intent ACTION_OPEN_DOCUMENT_TREE then you can create directories too.

If you can only pick files (ACTION_OPEN_DOCUMENT) then not.