In addition to using notification, toast can also be used to inform users that something has happened, toast a transparent dialog box that can be displayed on the screen for a few seconds and then automatically disappear. Functionally somewhat similar to the ToolTip. A feature of the toast does not capture the focus of the screen and thus does not affect the operation of the application.
Notifywithtext describes the basic approach to using toast, and toast the time interval displayed on the screen can be controlled. Show short Notification and show long Notification are set in two different intervals. One displays a shorter message, one that displays longer information.
Toast.maketext (Notifywithtext.this, R.string.short_notification_text,
toast.length_short). Show ();
Toast.maketext (Notifywithtext.this, R.string.long_notification_text,
Toast.length_long). Show ();