清算通知
答
是,使用NotificationManager.cancelAll ()
http://developer.android.com/reference/android/app/NotificationManager.html#cancelAll()
答
是的,看看这里:
Remove the notification icon from the status bar
您只需要提供您的通知ID;只删除您的应用程序的通知。
当用户注销或活动去的onPause()或的onStop()(您需要依赖)使用:
public void cancel (String tag, int id)
取消先前显示通知。如果是暂时的,视图将被隐藏。如果它是持久的,它将从状态栏中删除。
只需在用户注销时关闭通知即可。 – 2013-02-15 12:21:22
http://*.com/questions/3595232/android-remove-notification-from-notification-bar – baboo 2013-02-15 12:21:35