I export my application to .apk file, sign it then install it. But when I run my App, it displays an error because there’s no data in my database. The database was created as a new one when I installed the application, so all the data were lost! How can I include database data when exporting an Android application? I check it an eclipse DDMS File explorer.the database does not have a any tables. it’s copying database partily in my asset folder.
Share
For that you have to keep copy of your database in
assetfolder and copy your database when your application get installed at first timeSee this code for How to copy your database
Hope this will help you…