我想清除设备中存在的所有通知,以及来自其他应用程序的通知。
我尝试使用:
mNotificationManager = (NotificationManager) getSystemService(TestActivity.NOTIFICATION_SERVICE);
mNotificationManager.cancelAll();
但没有好处。而在我发送通知的另一个测试中,此代码有效。
是否不允许删除其他应用程序的通知?
我想清除设备中存在的所有通知,以及来自其他应用程序的通知。
我尝试使用:
mNotificationManager = (NotificationManager) getSystemService(TestActivity.NOTIFICATION_SERVICE);
mNotificationManager.cancelAll();
但没有好处。而在我发送通知的另一个测试中,此代码有效。
是否不允许删除其他应用程序的通知?