In my app, I construct a calendar widget for my activity, when I scroll it to previous or next month, I let it make a toast and show it.
The question is, the toast n
You just need to declare a "Toast" var like this:
Toast toastMessage;
Then in your function, do it like this:
if (toastMessage!= null) { toastMessage.cancel(); } toastMessage= Toast.makeText(context, "The message you want to display", duration); toastMessage.show();