• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Creating Update Function manually, how do I save app preferences before I update it?

usr1234

Lurker
Hi there,

I registered to this forums because I can not find some information at Android Developer or StackOverFlow.

I would not like to publish my application on Android Market, but make it downloadable/updateable from my own server.

I do use some databases which should not get deleted and the shared preferences should net get deleted, too.

The user should be able to click on an "update" button, the new .apk file is than downloaded and overwrites the old .apk, without overwriting user settings and databases, is that possible?

Is it necessary to uninstall the existing app and install the new one or is there a possibility to "refresh" the old one without removing it?

It would be a bit complicated to copy all the preferences and databases to the SD Card and copy it back after the new application is installed (maybe the sd is mounted so there would be no way to cache this files).

How does the Android Market solve this problem?

Maybe someone can give me some information about that, or some links I could not find right now ...

:)
 
I would not like to publish my application on Android Market, but make it downloadable/updateable from my own server.

I do use some databases which should not get deleted and the shared preferences should net get deleted, too.

I don't have the answer to your question.

Do you see that anyone who did might be reluctant to give it to you based on those two statements?
 
Back
Top Bottom