CountDownTimer does NOT have any mechanism for accessing the user interface inside the onTick method. More importantly, from the source code you can see that internally it uses a handler that executes when the object is created. Thus, it works in the thread where the timer was created.
The question is incorrect, in your case I can access these views, because maybe you are creating a CountDownTimer as an anonymous class for activity. And if you're lucky, this was done in the user interface thread.
source share