Executing code when Application is updated/reinstalled
<p>here is my problem.
I have Some Alarms set via AlarmManager to do some periodic jobs.
I set/reset them when user opens the app for the first time &amp; on every boot_complete event.
But when the app is reinstalled via ADB then my alarms do not fire anymore. looks like the OS deletes the Alarms on reinstall of the app. I assume this will happen if the user updates the app from the market also.</p>

<p>If I can receive a broadcast or some sort of callback in the event of reinstall/upgrade etc of my application, I can set the alarms again. but i don't know if it is possible or how?
Can someone please help me out.</p>
