I currently have a SQLiteDatabase created using SQLiteDatabase.create(null) . At a later point, I want to backup this database in a file.
It is well documented for the C SQLite API. Essentially, I would like to reproduce the functionality of the loadOrSaveDb function, but it does not seem that the sqlite3_backup functions are available in the SQLite Android API.
If this is not possible by analogy with the C backup APIs, is there an easy way to comprehensively copy the contents of SQLiteDatabase in memory to a file?
(This is essentially the same issue as backing up and restoring sqlite from disk to memory in Java , but with Android SQLite, not JDBC.)
source share