SyntaxFix
Write A Post
Hire A Developer
Questions
Either call cancel() on the Timer if that's all it's doing, or cancel() on the TimerTask if the timer itself has other tasks which you wish to continue.
cancel()
Timer
TimerTask