I export my application to .apk file, sign after that it do the installation. However when I run my Application, it shows a mistake due to there being no data during my database. The database was produced as a replacement after i installed the applying, so that all the information were lost! How do i include database data when conveying an Android application?

Option #1: Package the database like a raw resource or resource, and employ streams copying that database to the proper position once the application is first run.

Option #2: Package SQL claims to populate the database like a raw resource, and execute individuals claims inside your SQLiteOpenHelper's onCreate() method.

Option #3: Place the inteligence straight inside your Java code to populate your database inside your SQLiteOpenHelper's onCreate() method.

Option #4: Download the database on first run and copy it to the proper position.

And so forth.