Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to publish an application update on android-market without deleting local database and local files?

I published an application that stores data in a local database.

Now I have to publish an update to this application to fix some little bugs, but I am afraid that downloading and installing the update will delate the local database associated with the previous version.

I would like to know how the update system works. Will installing an update completely delete all the apk, files, databases associeted with the previous version?

If so, how can I avoid this in my code?

Thanks a lot for your help!!

like image 566
Babbilla Avatar asked Nov 11 '10 13:11

Babbilla


1 Answers

Installing an update will completely delete all the apk, files, databases associeted with the previous version?

No, it doesn't. If the user uninstalls the application, those files will be removed, but an update leaves those files in place.

like image 166
CommonsWare Avatar answered Oct 17 '22 16:10

CommonsWare