Hi all,
I noticed that an alarm is disabled when the application which sets this alarm has been upgraded. Is that true ?
Until now, I used the SharedPreferences
with a FIRST_RUN
key in order to know if it's the first run of my application. If I don't find this key, I enable the alarm and set FIRST_RUN
to false, else I do nothing.
But I noticed also that these preferences remain intact between app upgrade !
So after an upgrade, the FIRST_RUN
key is already false, so I do nothing while my alarm need to be enabled.
How to handle such case ?
Thanks in advance