Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Creating NotificaitonCompat.Builder
final NotificationCompat.Builder builder = new NotificationCompat.Builder(this)
.setColor(ResourcesCompat.getColor(getResources(), R.color.red, null))
.setSmallIcon(R.drawable.ic_stat_name)
.setDefaults(Notification.DEFAULT_ALL)
.setPriority(Notification.PRIORITY_MAX)
.setContentTitle(getString(R.string.app_name))
.setContentText(getString(R.string.app_name) + " TEST");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment