Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("Layout")
'Your App first version, you can create a new txt file named "version.txt" and write a sign(for example,it is a number 1.0)
If File.Exists(File.DirInternal,"version.txt")=False Then
File.Copy(File.DirAssets,"version.txt",File.DirInternal,"version.txt")
End If
Dim VersionNum As String
VersionNum=File.ReadString(File.DirInternal,"version.txt")
If FirstTime And VersionNum<1.5 Then '1.5 is the sign of new app version
'del your old database
If File.Exists(File.DirInternal, "my.db") = True Then
File.Delete(File.DirInternal, "my.db")
End If
'copy new database to File.DirInternal
File.Copy(File.DirAssets,"new.db",File.DirInternal,"my.db")
File.WriteString(File.DirInternal,"version.txt",1.5) 'also not need this line
End If
End Sub