开发者

Database values do not appear during first time use of my application

I am creating a database using a DataHelper class and then creating a table using FTS virtual table. The values are being imported from the text file in RAW folder which conta开发者_开发知识库ins 1000 entries and a total file size of 64 kB.

But during the first time use the data values are not appearing during table query as though the full table is not yet created. Perhaps the file size is not at all huge(64 kB). The values appear when i restart the application and again make the query.

Is there any solution for this??


There is a solution: you can package your SQLite database in the APK and copy it on first run. That way you will avoid long initial population... More about this solution: Ship an application with a database

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜