showToast
Shows a toast message with the given message and duration.
Parameters
message
The message to be displayed in the toast.
duration
The duration of the toast. Can be either Toast.LENGTH_SHORT or Toast.LENGTH_LONG.
Shows a toast message with the given message and duration.
The message to be displayed in the toast.
The duration of the toast. Can be either Toast.LENGTH_SHORT or Toast.LENGTH_LONG.