tags:

views:

79

answers:

1

Hi, 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 & 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.

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.

+3  A: 
Christopher
Rahul
DB upgrades don't happen at application upgrade time. Anyway, you could file a bug on the Android project to let them know that you think alarms should be kept when replacing a package. I can't think of anything immediately obvious why this couldn't be done, as even if the PendingIntent in your alarm can't be resolved after the upgrade, then the system could just ignore it..
Christopher