Skip to content Skip to sidebar Skip to footer

Scheduledthreadpoolexecutor Only "ticking" Once

I was using a CountDownTimer for some countdown functionality I have in my Activity. I decided to move away from CountDownTimer and use ScheduledThreadPoolExecutor because CountDo

Solution 1:

The documentation says:

If any execution of the task encounters an exception, subsequent executions are suppressed.

Add try-catch block to your Tick runnable.

Post a Comment for "Scheduledthreadpoolexecutor Only "ticking" Once"