I am copying a pre-existing database to /data/data/packagename/databases using code learned from using-your-own-sqlite-database-in-android-applications
/data/data/packagename/databases
After copying, I recieve the following log message on opening the database:
No such table android_metadata
Do I need to create a table named android_metadata? And what the values do i need insert into this database table
Thanks very much
Actually, with a bit more reading, I have discovered that I need to use the SQLiteDatabase.NO_LOCALIZED_COLLATORS flag when calling SQLiteDatabase.openDatabase() - this no longer causes the problem.
SQLiteDatabase.NO_LOCALIZED_COLLATORS
SQLiteDatabase.openDatabase()
2.1m questions
2.1m answers
60 comments
57.0k users