I notice two things.
1. When I completely delete my app from my device, then compile and install it through the debugger on my device, list the files in File.DirInternal, I see:
(ArrayList) [Objects.db-shm, Objects.db-wal, StarLog.db-shm, StarLog.db-wal, Objects.db, StarLog.db, virtual_assets]
That is
before I copied the databases from DirAssets to DirInternal! Why are these files still there after I completely uninstalled the app?
2. I already use this code to disable WAL:
Database.Initialize(File.DirInternal, "StarLog.db", False)
If p.SdkVersion >= 26 Then
Dim r As Reflector
r.Target = Database
r.Target = r.GetField("db")
r.RunMethod("disableWriteAheadLogging")
End If
And when I check the database in the debugger I see that WAL is not enabled
Is disabling WAL a one time thing or do I need to disable it every time I initialise the database?