when a app has caused a exception and been killed ,how can i catch this info to clear some resources associated with this app? are there some servers to service for this situation?
for example, my app will generate some notification,and the app may cause a exception,how to clear the notifications when the app be killed?