I have been working on an Android app that has some basic toggles and a Drive Mode feature. In the Drive Mode, the user may optionally auto reply to incoming notifications and all this works fine. I even have a persistent notification in the status bar when Drive Mode is started. One problem is, however, when my app is swiped away from the recents menu in Android, Drive Mode is stopped but the notification is still there. So my question is, how can I either keep Drive Mode running, or how can I remove the notification.
I know this is probably frowned upon but instead of listing my code here, you may find it at
http://github.com/sociallymellow/mango
and if you would like to download the apk (or see my other projects) visit
http://mellowdev.net
I have attempted to make this a service but no luck. I have also attempted to @Override the onDestroy method with no luck. Thanks!