从通知抽屉中删除所有通知
问题描述:
我想从通知抽屉中删除所有通知,不仅是我的应用程序通知,还包括所有其他应用程序的通知。 NotificationListenerService可以做到这一点,但有没有其他方式来简单地删除通知?从通知抽屉中删除所有通知
答
试试这个它为我工作
NotificationManager.cancelAll() to remove all notification.
+0
,但这将删除我自己的应用程序的通知并不是所有其他应用程序的通知也? –
的可能的复制[安卓:从通知栏删除通知(https://开头计算器。 com/questions/3595232/android-remove-notification-from-notification-bar) –