I was wondering if there was anyway to use the timer class to assign to a textView in order to count down from 10 to 0 and display it in real time?
I’ve looked into it and found the Chronometer functions but what I understand is that it only counts up?
I’d like to learn how to do this, so is there any way to do it? and if so, how? I’m completely puzzled..
if you need to countdown, there is the homonym class in the android.os Package called CountDownTimer.
Here (http://developer.android.com/reference/android/os/CountDownTimer.html)you can find the correct usage of this class. This is exactly what you need.
This class is present since API Level 1 so you can’t fall into compatibility problems.
Example (from the docs)