Does the application update clearedpreferences or remove alarms set by the application?

I published my application on google store and now I want to update it.

But I want to be sure that I will not lose the saved data in my general application settings. I also set an alarm in my application, which starts the notification, and I also do not want to lose them.

I'm not sure how the update application works? does it rewrite these things? Is there anyway that I can test it before publishing it globally?

I should mention that the changes made to this version contain some changes in the manifest: I changed targetSdkVersion and minSdkVersion (I used to have minSdk=8 , I changed it to 4 and added targetsdk=15 ), and I gave the process name to mine service alarmservice (which is an intenservice for setting an alarm), but then decided to change it and now does not have a process name.

+3
android sharedpreferences alarmmanager
Apr 18 '12 at 0:00
source share
2 answers

As a rule, SharedPreferences (as well as other user data) will be stored during the update process, but sometimes, due to some "unknown" problem, the data may be lost, and I think that it is not under your control. That way, you can simply believe that SharedPreferences will be saved.

As for alarms, how did you set these alarms? If you install them in code, it should be 100% normal if you install them correctly in code.

Of course, the best way to check is to install your updated application on your device before you bring it to the market. First, you must install your market version of the application on your phone, and then export the application using your market key store on your local computer, and finally install the exported version on your phone (the installer must inform you of the update). And you can check if these settings remain.

When exporting, the most important thing is to make sure that you use the same keystore that you use with the market version of the application.

Hope this helps you.

+7
Apr 18 2018-12-12T00:
source share

SharedPreferences are saved and will be saved when the application is updated. I'm not sure about the alarms, sorry.

To test your update, simply install your market version on your device, configure your material (alarms, sharedprefs), as an ordinary user did, and simply install apk on your phone, which you will bring to the market (signed apk!). The installation should be the same as the update your user will receive ...

+2
Apr 18 2018-12-12T00:
source share



All Articles