Reputation: 2417
Trying to implement import and export feature in my application.Exporting is just copying of file in to the sd card. which i have done but importing is bit problematic. As importing should delete the previous rather the current database i am using and load the previous one. I have gone through various post on this site regarding importing of sqlite database from sd card in application.Importing database,here there is an answer but i want to know when this method is to be called .? Or any other solution for this. would be really appreciated !
Upvotes: 3
Views: 1831
Reputation: 3261
Refer this.. Using this you can club your db (.sqlite) in zip folder inside assests. On installation it will unzip that & create the databse from your .sqlite file.
Upvotes: 0
Reputation: 877
I feel this link will help you to find a solution basically you have to check whether you have included the permission in your manifest file to read and write external storage Device then follow the tutorial.
Upvotes: 3