Sujit
Sujit

Reputation: 10622

update Ui with TimeTask in android

I am running a countdown timer in android and i want to show this countdown to the user in an Activity with a TextView. How can i do this? Has any one done this before?

Upvotes: 0

Views: 171

Answers (1)

st0le
st0le

Reputation: 33545

2 Methods,

First Method involves, Using a Handler. See my Answer here Its not a countdown, but it should show you how to use a Handler.

Second Method involves, Using runOnUIThread(), by running a Runnable with the implementation of your countdown.

Upvotes: 1

Related Questions