You cannot reuse TimerTasks.
The reason you get IllegalStateException(most likely) is because you are trying to schedule a task that was previously canceled.
To do it right, i.e. To avoid IllegalStateException, you need to create a new TimerTaskone every time you want to plan it.