show Toast
Displays a toast message.
Parameters
msg
The text message to show.
duration
Duration of the toast: Toast.LENGTH_SHORT or Toast.LENGTH_LONG.
Displays a toast message using a string resource ID.
Parameters
msg Res
String resource ID to show.
duration
Duration of the toast: Toast.LENGTH_SHORT or Toast.LENGTH_LONG.