Cancel the original Toast, set a new message and show the message again Toast.
Toast mytoast;
mytoast = Toast.makeText(this, "Hi Ho Jorgesys! ", Toast.LENGTH_LONG);
mytoast.show();
....
....
....
if(CancelToast){
mytoast.cancel();
mytoast = Toast.makeText(this, "Same toast with another message.", Toast.LENGTH_LONG);
mytoast.show();
}
source
share