Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created March 23, 2016 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hitherejoe/89e8e29dda0cf1dbc6f8 to your computer and use it in GitHub Desktop.
Save hitherejoe/89e8e29dda0cf1dbc6f8 to your computer and use it in GitHub Desktop.
NotificationCompat.Builder builderOne = new NotificationCompat.Builder(context)
// Other properties
.setGroupSummary(true)
.setGroup(KEY_NOTIFICATION_GROUP);
NotificationCompat.Builder builderTwo = new NotificationCompat.Builder(context)
// Other properties
.setGroupSummary(true)
.setGroup(KEY_NOTIFICATION_GROUP);
NotificationCompat.Builder builderThree = new NotificationCompat.Builder(context)
// Other properties
.setGroupSummary(true)
.setGroup(KEY_NOTIFICATION_GROUP);
@kirantrathod
Copy link

what is KEY_NOTIFICATION_GROUP in setGroup()?
I want to bundle my notifications same as whats app does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment