Chapter 7. Notifying Users

In this chapter, we will cover the following topics:

  • Toasts
  • Alert dialogs
  • Alert fragments
  • Embedded alert fragments
  • Selection alerts
  • The notification builder
  • Ongoing notifications
  • Custom notification views
  • Push notifications

Introduction

A notification is something that draws someone's attention to let them know that something has happened. Notifications exist in the real world as well as in the digital world. Without notifications the user would have to keep checking to see if something has happened, and since most probably nothing has, the whole exercise becomes a waste of time.

By relying on something to let the user know about an event, the user is free to work on other things. Notifications must be easy to recognize and must ...

Get Xamarin Mobile Development for Android Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.