How to know my Android application has been upgraded in order to reset an alarm?
<p>I noticed that an alarm is disabled when the application which sets this alarm has been upgraded. <strong>Is that true ?</strong></p>

<p>Until now, I used the <code>SharedPreferences</code> with a <code>FIRST_RUN</code> 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 <code>FIRST_RUN</code> to false, else I do nothing.</p>

<p>But I noticed also that these preferences remain intact between app upgrade !</p>

<p>So after an upgrade, the <code>FIRST_RUN</code> key is already false, so I do nothing while my alarm need to be enabled.</p>

<p>How to handle such case ?</p>

<p>Thanks in advance</p>
