Hello,
What is the correct solution to update an app with a database?
This is what I have now
Do I have to delete the app first or is there a better construction to replace the database on an update?
Thanks in advance.
Helen.
What is the correct solution to update an app with a database?
This is what I have now
B4X:
If FirstTime = True Then
If File.Exists(File.DirDefaultExternal,"world.jpg") = False Then
File.Copy(File.DirAssets,"world.jpg", File.DirDefaultExternal,"world.jpg")
ST.Initialize(File.DirDefaultExternal, "world.jpg", False)
Else
ST.Initialize(File.DirDefaultExternal, "world.jpg", False)
End If
End If
Do I have to delete the app first or is there a better construction to replace the database on an update?
Thanks in advance.
Helen.