How to pre-populate sqlite Green DAO database

I am going to use the ORM Green DAO tool. I will need to insert about six hundred rows of data into my database. I am wondering if there is a pre-database method using some form of sqlite or script database management tool. I do not want to manually add each of these objects and so on. in Android code. It would be too tiring and time consuming.

+5
source share
1 answer

Put your data in a CSV / JSON file. Then, in the onCreate method of your DBHelper, read the file and paste it into your database.

+4
source

All Articles