This tutorial shows how to use both toasts and dialogs to display messages to the user.
Toasts are small messages that usually appear at the bottom of the display after a process is completed.
Dialogs are windows that appear in the middle of the display usually prompting the user to confirm or deny an action.