0

I've two actions for the Notification and when the user clicks on any of the action, it opens separate Activities.

On clicking the Notification, it's cancelling but clicking on any action is not cancelling the Notification. The requirement is to close the Notification when user clicks on any action.

enter image description here

In the image you can see action agree and settings. Clicking on these actions I would like to close the Notification.

I've researched and searched to the best of my abilities. Please help.

4

1 回答 1

1

制作一个中间广播接收器来处理通知按钮(即从那里调用设置)。将通知发送到 BroadcastReceiver 并在那里取消它

于 2013-10-26T13:41:46.007 回答