I have a .db file and I want to setup it at first run of my android application. I use OrmLite to manage my database.
In that .db file a have about 7000 records and when
If you want to provide the data as an external db, you can dump on or more tables (definition and data) using
sqlite3 prepared.db ".dump mytable" > dump.sql
and import them using
sqlite3 main.db < dump.sql
If you want to setup things programmatically in Java, make sure that you do everything in one single transaction using TransactionManager.callInTransaction, since multiple commits (autocommits) are quite expensive in SQLite.