does Android have a “best practices” guideline on creating & populating the db/tables programmatically vs. deploying a .db file in assets?
What are the pros/cons of both approaches?
I have a db with big long strings in several columns, and about 50 rows, so writing the insert statements alone would take quite some space. It seems a waste.
Thoughts?
Thanks!
llappall
I’ve just started using SQLite on Android.
The same kind of factors apply in your decisions on this platform as any other.
Scripting and programmatically populating:
Prepopulating the database and deploying
It’s all preference really, after all, there’s nothing to say you can’t start with a prepopulated database and have it update over the wire via scripts.