I have an app with an activity and an intent service running in the background.
There's also a notification which shows a progress bar with the progress of the background process (it's downloading a lot of files from a server).
The activity shows the download progress ( user can't meaningfully use the app before these assets are downloaded). When this activity is closed, the notification with the progress bar is shown.
My issue: When the application is killed via the "task manager" (accessible via right button on android 4.0, the one with the two rectangles), the notification is still there. But it's basically a zombie, because the service that used to update it is dead.
Put in a different way: How can I remove a (or all) notification(s) when my application is killed?