Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("myworldmain")
'Test if this is the first time for the application to run and if so, create and initialize the database.
If FirstTime Then
If File.Exists(File.DirRootExternal, "MyWorld.db") = False Then
SQLMyWorld.Initialize(File.DirRootExternal,"MyWorld.db", True)
'Create the tables
CreateTables
Else
SQLMyWorld.Initialize(File.DirRootExternal,"MyWorld.db", True)
End If
End If
End Sub