Titanium - Android external storage - create new directory and then write files into it

后端 未结 3 1587
忘了有多久
忘了有多久 2021-01-27 00:30

Can we not simply create new directory programmatically on external SD card (not internal memory of device) in Android and can we not write files on SD card?

Is Titanium

3条回答
  •  情深已故
    2021-01-27 01:11

    Use the Storage Access Framework to write on the micro SD card. Google for ACTION_OPEN_DOCUMENT_TREE and ACTION_OPEN_DOCUMENT.

    Besides that you can write in a normal way in one app specific directory on the micro SD card. Have a look at the second entry returned by getExternalFilesDirs().

提交回复
热议问题