1

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

PPShein
  • 12,193
  • 38
  • 136
  • 207

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
  • 106,566
  • 23
  • 160
  • 150
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
  • 10,986
  • 8
  • 64
  • 89