Toast makeText (Context context, CharSequence text, in duration) display message method Example You use toast simply toast class to display a simple toast message. You can use toast when you need to displaying some method for example buttons when users click on buttons then particular display message short or long duration then we’ll use toast. Here, we’ll display a simple toast message.
To display toast we will import toast widget, in android studio automatically import toast widget when use toast to display message. Toast is nothing but displaying a short message to a particular timer. How to display toast in android Toast shortcut android studio What is toast?