Display information in your Android app by using toast messages, snackbars, dialogs, and notifications. Joe Marini shows you how you can ensure your app communicates effectively with the user. In this course, he demonstrates how to select the right method depending on if you want the user to acknowledge information, make a confirmation, or be notified of an event.
- View Offline
- [Joe] Hi, I'm Joe Marini. And welcome to this course on communicating with users in your Android apps. Android provides a rich set of options for notifying and communicating with the user. It's important, however, to choose the right tool for the job to ensure that the user gets the best possible experience when using your app. In this course, we'll take a look at four popular options for communicating with an app's users. We'll start by learning about Toast messages, and how they can be employed to give users short, casual information.
We'll see how to create and display Toast messages as well as how to build Toasts with custom layouts and screen positioning. Then we'll move onto Snackbars, and see how they are similar to Toast messages, but add the important ability for the user to execute an action when they are displayed. We'll also look at how they can be used along with CoordinatorLayout to provide features like swipe away, and how they can move other elements like a floating action button out of the way when they appear. After that, we'll investigate dialogs and see how they are used when your app needs the user to perform an action before your app can proceed.
We'll see how to create simple dialogs using Android's built-in dialog functions, along with how to create custom dialog layouts. Finally, we'll wrap up by learning about Android notifications, and how they can be used to alert the user about a variety of different events in your app, and the various ways in which they can be displayed to, and interacted with, by the user. Knowing how and when to use each of these options will ensure that your users enjoy a smooth, predictable flow of operation when working with your app, and that they'll get the information they need at the right times.
By the end of the course, you should have a good sense of when to use each feature, what its benefits and drawbacks are, and how to implement each one. The best Android apps make interaction with the user as smooth as possible. Let's make sure that your app is one of them by getting started with Android: Communicating with the User.
- Communicating with toasts
- Displaying a snackbar
- Using snackbars with actions
- Creating simple dialogs and choice dialogs
- Returning results from a dialog
- Creating custom dialogs
- Displaying notifications
- Using NotificationCompat
- Working with expanded notifications