dibesw Active Member Licensed User Longtime User Sep 16, 2015 #1 I would like to create a dir to external SD Card. Asus MemoPad 10" - 4.4.2 In file explorer I read: Removable\MicroSD I tried this: Code: Copy 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 Code: Copy '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: Code: Copy '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
I would like to create a dir to external SD Card. Asus MemoPad 10" - 4.4.2 In file explorer I read: Removable\MicroSD I tried this: Code: Copy 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 Code: Copy '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: Code: Copy '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
Erel B4X founder Staff member Licensed User Longtime User Sep 16, 2015 #2 You cannot. File.ExternalWritable points to the secondary storage which is an internal storage. On Android 4.4 you can only write to one specific folder on the sd card: https://www.b4x.com/android/forum/posts/255351/ Upvote 0
You cannot. File.ExternalWritable points to the secondary storage which is an internal storage. On Android 4.4 you can only write to one specific folder on the sd card: https://www.b4x.com/android/forum/posts/255351/