Skip to content

Instantly share code, notes, and snippets.

@hitherejoe
Created March 23, 2016 20:30
Show Gist options
  • Save hitherejoe/cb7243465e85b418df9f to your computer and use it in GitHub Desktop.
Save hitherejoe/cb7243465e85b418df9f to your computer and use it in GitHub Desktop.
NotificationCompat.Builder builder = new NotificationCompat.Builder(context)
.setSmallIcon(R.drawable.ic_phonelink_ring_primary_24dp)
.setContentTitle(title)
.setContentText(message)
.setLargeIcon(largeIcon)
.addAction(replyAction);
.addAction(archiveAction);
.setAutoCancel(true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment