tags:

views:

40

answers:

1

I have a UI with buttons. This thread takes input from the user and does a particular task. Now, I want the background of one button(generated randomly) to change periodically(say, every 30s), but i want the main thread to continue taking input. I m not able to interleave the threads in exactly this way. Any help would be appreciated. Thanks in advance.

+1  A: 

See this article. It shows how to update UI form a timer.

Orsol
thanks a lot. If postAtTime does not work try postDelayed(this,1000)
Divya