Hi All,
Trying to update Apps before Google changes access to "File.DirRootExternal".
I currently create a folder in DirRootExternal to allow the App and the user to exchange files. [IE Inport/Export].
I have been trying to use Erel's B4A Class ExternalStorage - Access SD cards and USB sticks as a learning example but it is primarily for "REAL" external memory and doesn't seem to fit my needs.
Below is Erel's "Activity Create" modified in an attempt to replicate what my existing Apps do. [Look for the relevant folder and if not there, create it.]
This does not work. Please help.
Thanks in advance
Roger
Trying to update Apps before Google changes access to "File.DirRootExternal".
I currently create a folder in DirRootExternal to allow the App and the user to exchange files. [IE Inport/Export].
I have been trying to use Erel's B4A Class ExternalStorage - Access SD cards and USB sticks as a learning example but it is primarily for "REAL" external memory and doesn't seem to fit my needs.
Below is Erel's "Activity Create" modified in an attempt to replicate what my existing Apps do. [Look for the relevant folder and if not there, create it.]
This does not work. Please help.
Create Folder in DirRootExt:
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
Storage.Initialize (Me, "Storage")
FoldersStack.Initialize
UpItem.Initialize
'Should MakeDir ***************************
If File.Exists(File.DirRootExternal&"/ExferDir/", "") = False Then
Log("No ExferDir")
File.MakeDir(File.DirRootExternal&"/ExferDir/", "")
If File.Exists(File.DirRootExternal&"/ExferDir/", "") = False Then
Log("Still no ExferDir")
End If
End If
**********************************************
End If
Activity.LoadLayout("1")
End Sub
Thanks in advance
Roger