I want to implement a notification action in JB. But it shouldn\'t open the app. The behaviour is similar to the Gmail apps delete notification action. How can I do this?
You can also add custom buttons or layouts with onClickEvents to your notification compat (e.g. events which do not open the app ;)):
builder.setContent(remoteView);
remoteView.setOnClickPendingIntent(R.id.button, pendingIntent); Happy coding