I have Calendar
Object
Calendar cal = Calendar.getInstance();
int hh = cal.get(Calendar.HOUR);
int mm = cal.get(Calendar.MINUTE);
int ss = cal.get(Calendar.SECOND);
And to format time
SimpleDateFormat sdf = new SimpleDateFormat("h:mm:s a", Locale.US);
I want my TextView
to display count down time in hh:mm:ss
format
Time left: 03:25:12
Time left: 03:25:11
Time left: 03:25:10
Time left: 03:25:09
.
.
. so on and stop the countdown after 3 hours, 25 minutes and 8 seconds.
After times is lapsed the TextView
should display Time left: 00:00:00
.