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 so restricted to always write files on internal memory even after using Ti.Filesystem.externalStorageDirectory?
Can someone who has ever been able to create a new directory programmatically on SD card in Android write the answer here or no one ever needs to write something on external SD card?
try this create folder and file in sdcard
manifest.xml permission
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().
You can use
System
class to get storage variables like belowTo get the internal SD card you can use
To get the external SD card you can use
You can choose where to create folder and which one to use.
EDIT
Environment.getExternalStorageDirectory()
DetailsReference from Environment
Hope it'll help.