I have seen a number of questions on cancelling toast. None of them is working.
I have a custom Toast. The code for that is all but one line same as http://developer.an
in above code toast.setDuration(Toast.LENGTH_LONG); in that u use toast.setDuration(Toast.LENGTH_SHORT); or se the particular time.Toast is cancelled automatically.we can't cancel it
toast.setDuration(Toast.LENGTH_LONG);
toast.setDuration(Toast.LENGTH_SHORT);