Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
' File.Delete(File.DirInternal, "persons.db") ' only for testing, removes the database
If File.Exists(File.DirInternal, "persons.db") = False Then
File.Copy(File.DirAssets, "persons.db", File.DirInternal, "persons.db")
SQL1.Initialize(File.DirInternal, "persons.db", True)
File.Copy(File.DirAssets, "persons.db", File.DirInternal, "persons.db")
Else
SQL1.Initialize(File.DirInternal, "persons.db", True)
End If
End If
Activity.LoadLayout("Main")
Activity.Title = "SQLiteLight2"
End Sub