O'Reilly logo

Android UI Design by Jessica Thornsby

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Notifications

Notifications underwent a massive overhaul in Android Lollipop, getting both a Material Design makeover and new methods that help Android sort notifications more intelligently.

In Android 5.0 and higher, you can annotate your notifications with the setPriority() method. Low-priority notifications may be hidden from the user, while higher-priority notifications are more likely to interrupt whatever the user is currently doing.

The different priority levels are:

  • Notification.PRIORITY_MAX: Used for critical and urgent notifications that alert the user to a condition that's time-sensitive, or that they may need to resolve before they can continue with the current task.
  • Notification.PRIORITY_HIGH: Typically used for important communications ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required