Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
'test for folder and create if not present ..
Dim MyPath As String : MyPath = File.DirDefaultExternal & "/MyFolder"
If File.Exists(MyPath, "") = False Then
File.MakeDir(File.DirDefaultExternal, "MyFolder")
'as folder was not present , no need to test for DB presence .. , copy predifined DB from assets to folder
File.Copy(File.DirAssets, "sql.db", File.DirDefaultExternal & "/MyFolder", "sql.db")
End If
'Alternatively create a blank DB file when initializing SQL .. you would then have to defing fields etc in code .
'initialize the database ..Create new file if does not exist
'SQL1.Initialize (File.DirDefaultExternal & "/MyFolder" , "sql.db",True)
End If
End Sub