December 2013
Beginner
416 pages
12h 45m
English
A toast is a transient message that appears and disappears without any interaction from the user and with no notification to the program that it has disappeared. Toast provides feedback from the application in a small pop-up window, which automatically disappears after a short time (see Figure 5.4).
Figure 5.4 Toast pop-up
To create a toast, follow these steps.
1. Create an instance of the Toast class by calling the makeToast method and passing the text to display and the amount of time the toast should be displayed.
2. Call the show method on the toast instance.
It would be cumbersome to create a Toast pop-up every time ...
Read now
Unlock full access