When I export Android apk file, SQLite data not included
After exporting Android apk file, there is n开发者_C百科o data included in SQLite database (I mean, empty database only attached).
put your filled database
in asset directory
and programatically copy
that database in
data/data/<package name>/database
directory when your application runs.
EDIT :
look at this my answer,
Not empty LiteSQL DB at start.
The following stackoverflow post may answer your question:
Updating prepopulated database in Android
In addition the following blog entry (based on the above answer may be useful):
http://blog.luxteam.net/2011/01/04/prefilled-database-in-android-application/
Search goggle for "Prefilled Database Android" may also get you some relevant results
精彩评论