Hello,
I'm going to take my first steps with SQLite on Android.
Erel's example shows how to create all tables by code.
But if you will use databases with several tables, views etc wouldn't it be better to design the database schema on a pc and add it to the /files folder
and copy it at runtime to DirDefaultExternal to make it writeable?
the sqlite file will be a few hundred kilobytes but since most of it is zero byte runlenghts the overhead to the APK file will be just a few Kb while all that code to generate the same thing on the Android side will probably make the APK larger than just including the sql file.
How do you guys/girls work this out?
I'm going to take my first steps with SQLite on Android.
Erel's example shows how to create all tables by code.
But if you will use databases with several tables, views etc wouldn't it be better to design the database schema on a pc and add it to the /files folder
and copy it at runtime to DirDefaultExternal to make it writeable?
the sqlite file will be a few hundred kilobytes but since most of it is zero byte runlenghts the overhead to the APK file will be just a few Kb while all that code to generate the same thing on the Android side will probably make the APK larger than just including the sql file.
How do you guys/girls work this out?