Reputation: 608
Can someone clearly explain the difference between a "Toast" and a "Notification" on the Android platform?
Upvotes: 3
Views: 9407
Reputation: 60
Toast doesn't give any kind of alert, and that is not clickable it is used to show message to end user. While in notification user gets alert and from that notification they are directly go to the application
Upvotes: 3
Reputation: 608
The toast class is used to display alerts to the user; it disappears after a few seconds. The NotificationManager class is used to display notifications on the device's status bar.
Toast with LENTH_LONG will display for 3.5 seconds.
The alert displayed by the NotificationManager class is persistent and can only be dismissed by the user when selected.
We can set Gravity to Top, Bottom or Center in Toast.
Notification displays only at status bar.
Upvotes: 1
Reputation: 138
A toast is a small display on the bottom of the screen.
A notification is displayed in the top menu bar.
Upvotes: 2