How To Override On Swipe From Recents List In Android?
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
Solution 1:
I have hidden my app from the recents list to overall fix my problem by adding android:label="@string/app_name"
to the manifest. I have also added the following as suggested in a comment.
@OverridepublicvoidonDestroy() {
NotificationManagernm= (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
nm.cancelAll();
}
Thank you all for the help and using both of these together completely solved my problem. I hope this helps others as well!
Post a Comment for "How To Override On Swipe From Recents List In Android?"