In my application I have alarm manager in that i am passing pendingintent. suppose if application crash at that time this alarm are not canceling. how to cancel alarm when application crash. where i need to write code to cancel the alarms if application crashes.
Asked
Active
Viewed 95 times
0
-
Have you found why your app crashed? try to fix it – yushulx Mar 24 '14 at 09:53
-
Other Than this any Solution is there – user2919516 Mar 24 '14 at 10:01
-
try{/*crash occurs*/}catch(exception e){/*cancel alarm*/} – yushulx Mar 24 '14 at 10:06
-
If we don't know where it crash in future at that time how to solve this one – user2919516 Mar 24 '14 at 10:20
-
Possible duplicate of [cancelling an alarm after program crash](http://stackoverflow.com/questions/6818333/cancelling-an-alarm-after-program-crash) – FireAphis Nov 03 '15 at 10:11