• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Creating a CountDown Timer

Well, what have you got so far in regards to the timer? Basically, you'll want to have a data member for the lastRecordedTime, intializing it in System.currentTimeMillis() in onCreate(), then create a new TimerTask subclass and in the run() method, get the current time into a local variable, subtract lastRecordedTime from it, convert it to hours, minutes, seconds (or w/e combo of them you need), and set the text of a TextView to the result. Lastly, you'll want to set lastRecordedTime to the local variable you stored at the beginning of the run() method.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones