What i have is a simple toast message that stays dispalayed until 90seconds are completed:
Toast.makeText(ActAtomicGodImages.this, "Please Wait \n Song is buffering ...", 90000);
What i am trying to do:
- Say i have a button click listener what does some action(Ex: opens another activity).
- On click of that button i want to dismiss the toast even if the 90seconds are not completed
- Is this possible, if so how
Call
cancel()
on theToast
to get rid of it.However, 90000 will not work. Your choices are
Toast.LENGTH_SHORT
orToast.LENGTH_LONG
, neither of which are anywhere near 90 seconds in duration.