Toast: is a class that primarily manages tips for messages.
Maketext () is a toast method used to display information with three parameters, respectively.
The first parameter: this, which is the context parameter, refers to the current page display
The second argument: "String string" is what you want to display, or "Hello!" ”。 This is a random definition that shows what you want to show.
The third parameter: Toast.length_long, you are referring to the message, the time shown, this is slightly longer, corresponding to the other is toastlength_short, this time is short, about 2 seconds.
Show (), indicating that the toast message is displayed, when the program runs here, it will be displayed, if you do not call the show () method, the Toast object exists, but does not display, so do not forget.
Android Toast: Is a class that primarily manages tips for messages