1

After exporting Android apk file, there is no data included in SQLite database (I mean, empty database only attached).

PPShein
  • 13,309
  • 42
  • 142
  • 227

2 Answers2

2

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.

Community
  • 1
  • 1
user370305
  • 108,599
  • 23
  • 164
  • 151
1

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

Community
  • 1
  • 1
tjb
  • 11,480
  • 9
  • 70
  • 91