Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No such table android_metadata, what's the problem?

Tags:

android

sqlite

I am copying a pre-existing database to /data/data/packagename/databases using code learned from using-your-own-sqlite-database-in-android-applications

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

like image 568
user275788 Avatar asked Mar 27 '10 07:03

user275788


1 Answers

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.

like image 198
foryou Avatar answered Sep 28 '22 07:09

foryou