

Generally, the size of Toast will be adjusted based on the space required for the message and it will be displayed on the top of the main content of activity for a short period of time.įor example, some of the apps will show a message like “ Press again to exit” in toast, when we pressed a back button on the home page or showing a message like “ saved successfully” toast when we click on the button to save the details.įollowing is the pictorial representation of using Toast in android applications.

The Toast will show the message for a small period of time and it will disappear automatically after a timeout. In android, Toast is a small popup notification that is used to display an information about the operation which we performed in our app.
