Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created March 24, 2016 06:50
Show Gist options
  • Save hitherejoe/b03e967e472e51745f56 to your computer and use it in GitHub Desktop.
Save hitherejoe/b03e967e472e51745f56 to your computer and use it in GitHub Desktop.
PendingIntent archiveIntent = PendingIntent.getActivity(...);
NotificationCompat.Action replyAction = ...;
NotificationCompat.Action archiveAction = ...;
NotificationCompat.Builder builder = new NotificationCompat.Builder(context)
// Other properties
.setGroup(KEY_NOTIFICATION_GROUP)
.addAction(replyAction)
.addAction(archiveAction);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment