Android Question SD Card External (create dir)

dibesw

Active Member
Licensed User
Longtime User
I would like to create a dir to external SD Card.

Asus MemoPad 10" - 4.4.2

In file explorer I read: Removable\MicroSD

sd.jpg


I tried this:

B4X:
File.MakeDir("/Removable/MicroSD", "222")
File.MakeDir("/MicroSD", "333")
File.MakeDir("/mnt/MicroSD", "000")
File.MakeDir("/mnt/Removable/MicroSD", "111")
File.MakeDir("/storage/external_sd", "444")
Msgbox(File.ExternalWritable,"")

none of this works.
File.ExternalWritable = True

B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
'End of default text.
AddPermission(android.permission.WRITE_MEDIA_STORAGE)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)

These are my dir:

B4X:
'Msgbox(File.DirRootExternal,"DirRootExternal") '/storage/emulated/0
'Msgbox(File.DirInternal,"DirInternal") '/data/data/b4a.sd/files
'Msgbox(File.DirInternalCache,"DirInternalCache") '/data/daqta/b4a.sd/cache
'Msgbox(File.DirDefaultExternal,"DirDefaultExternal") '/storage/emulated/0/android/data/b4a.sd/files

Any help?

THANKS
 
Top