I have an android app, which is basically an exam simulator, it will come preloaded with questions and the user gets a simple multiple choice interface.
My question is, what is the best way to preload, or at least manage the task of preloading data into a SQL database?
Two options I can see right off the bat :
- Get SQLite browser, manually insert each entry. I don't like this as it feels too "cowboy"
- Create some utility class that gets run once and inserts a bunch of data, I don't like this either as I don't think that hardcoding a load of inserts in a class file is good practice.
What is the best option (open to alternative suggestions) for this problem? Can I have a SQL insert script that gets loaded on startup?
The data will be static, if it needs to change I'll publish a new version of the app. I expect there to be 200~ questions, so I won't have masses of inserts.
Any ideas?