android - Ship an application with a database -
if application requires database , comes built in data, best way ship application? should i:
precreate sqlite database , include in
.apk
?include sql commands application , have create database , insert data on first use?
the drawbacks see are:
possible sqlite version mismatches might cause problems , don't know database should go , how access it.
it may take long time create , populate database on device.
any suggestions? pointers documentation regarding issues appreciated.
i found way in reigndesign blog in article titled using own sqlite database in android applications. precreate database, put in assets directory in apk, , on first use copy "/data/data/your_package/databases/" directory.
Comments
Post a Comment