Skip to content

Instantly share code, notes, and snippets.

@SeanPONeil
Last active August 29, 2015 13:58
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 SeanPONeil/10165893 to your computer and use it in GitHub Desktop.
Save SeanPONeil/10165893 to your computer and use it in GitHub Desktop.
displayNotification
public void displayNotification() {
mNotifyBuilder = new NotificationCompat.Builder(this)
.setContentTitle("New Message")
.setContentText("You've received new messages.")
.setSmallIcon(R.drawable.ic_notify_status)
mNotificationManager.notify(
notifyID, mNotifyBuilder.build());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment