0Pricing
Android Academy · Lesson

Building a Notification

Create and show a basic notification.

Building a Notification

With a channel in place, you build the notification itself using NotificationCompat.Builder, then post it with the NotificationManager.

Why NotificationCompat

Always use NotificationCompat.Builder rather than the raw framework builder. It handles version differences for you, so one code path works across Android versions.

All lessons in this course

  1. Notification Channels
  2. Building a Notification
  3. Actions and Deep Links
  4. The Notification Runtime Permission
← Back to Android Academy