Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android toast message

Toast toast;

private void toast(String msg) {
  if (toast != null) toast.cancel();
  toast = Toast.makeText(getBaseContext(), msg, Toast.LENGTH_SHORT);
  toast.show();
}
 
PREVIOUS NEXT
Tagged: #android #toast #message
ADD COMMENT
Topic
Name
6+6 =