populate Sqlite database for use in application

I want to create a quiz-like application where I use an Sqlite database to store the questions. I then have to pre-populate the database and thinking of use Sql Asset helper (https://github.com/jgilfelt/android-sqlite-asset-helper) to ship the application with the database.

Is this a good solution?

What is the easiest way of populating the database? (There will be 500+ records in the db-table)


Check this https://gist.github.com/donaldlittlepie/1271795

Copy the pre-populated db to assets folder.

链接地址: http://www.djcxy.com/p/74580.html

上一篇: 使用多个SQL数据库

下一篇: 填充Sqlite数据库以便在应用程序中使用