Skip to content Skip to sidebar Skip to footer

Can I Use A Toast For The CountDownTimer

I want to use a Toast inside the CountdownTimer, but the problem is the Toast counts too slow and when the new Activity stars the Toast isn't finished counting.I know it is easier

Solution 1:

If you mean that they stack up causing a delay then you should cancel the prior toast before showing a new one.

If you want something more fancy you could try using a PopupWindow instead to show the countdown, there you have more freedom for layout etc.

http://developer.android.com/reference/android/widget/PopupWindow.html


Post a Comment for "Can I Use A Toast For The CountDownTimer"