have a clock I want to display in a TextView.
I would have thought there was a few nice functions to do this, but I couldn\'t find anything. I ended up implementing
Check out the Chronometer and DigitalClock classes, which are extensions of the TextView class. They should automatically do what you're looking for. If you need some additional functionality, just take a look at the source code for those and make any changes you need.
UPDATE:
Since digital clock is deprecated in API 17, I would recommend to use Text Clock instead.