Hi there
I install an SQLite db like this..
I always include the database with each install but want to be able to only copy from Dir.Assets if it has changed in structure. I understand you can't delete from Dir.Assets. Is there anywhere I can run this code which only runs on install? Any different advice is very welcome..
Kind regards,
Derek.
I install an SQLite db like this..
B4X:
If File.Exists (File.DirDefaultExternal ,"My.db") = False Then
File.Copy(File.DirAssets,"My.db",File.DirDefaultExternal ,"My.db")
end if
I always include the database with each install but want to be able to only copy from Dir.Assets if it has changed in structure. I understand you can't delete from Dir.Assets. Is there anywhere I can run this code which only runs on install? Any different advice is very welcome..
Kind regards,
Derek.