Knowing how and when to display communications in your Android app can ensure your users enjoy a smooth user experience with a predictable and reliable flow. Join Joe Marini in this course and learn how to give your users the information they need at the right time. Joe demonstrates how to communicate to your users using toast messages, snackbars, and dialogs depending on if you want the user to acknowledge or confirm information. He explains how to handle events using notifications, how to customize layouts, and how to work with action buttons. He also shares the benefits and drawbacks of each feature so you can select the right method for the best user experience.Topics include:
- 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
- [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.