No such table android_metadata, what's the problem?

后端 未结 7 1836
后悔当初
后悔当初 2020-12-07 15:37

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

7条回答
  •  一整个雨季
    2020-12-07 16:21

    When you copy database from your assets directory for example, then you must have android_metadata table created in it already. This table should have two columns:

    _id = an integer value
    locale = en
    

提交回复
热议问题