I found that if new version of APK was updated through Google Play some (I am not sure) additional files (in Files folder) were not overwritten. That leads to application mistakes for example if new table added into database file.
Is it possible to force files replacement or clean installation (uninstall previous version and then install new)?
Sub Process_Globals
DimDBFileNameAsString : DBFileName = "MyDB.db"
DimDBFileDirAsString : DBFileDir = File.DirInternal
End Sub
...
If File.Exists(DBFileDir, DBFileName) = False Then
File.Copy(File.DirAssets, DBFileName, DBFileDir, DBFileName)
SQL1.Initialize(DBFileDir, DBFileName, False)
Else
SQL1.Initialize(DBFileDir, DBFileName, False)
End If
...
This is strange from the code - the file is supposed to be copied from Assets folder.