[android-developers] Re: How to update the UI from a timer

2008-03-31 Thread DanAtAndroid
The only way to do this is with a handler as mentioned a few times above already. On Mar 31, 12:41 pm, Phision <[EMAIL PROTECTED]> wrote: > I think I have the same problem. I want to update a progress bar at a > regular interval of time. I am calling setProgress() each second but > the progress

[android-developers] Re: How to update the UI from a timer

2008-03-31 Thread Phision
I think I have the same problem. I want to update a progress bar at a regular interval of time. I am calling setProgress() each second but the progress bar will not redraw itself. I tried to call postInvalidate after setProgress and it works BUT only if I give a constant value to setProgress (for

[android-developers] Re: How to update the UI from a timer

2008-03-23 Thread David
Take a look at android.os.Handler. I used this to update the GUI from another thread which should work for a Timer I would think. A ListActivity in my program needed the notifyDataSetChanged message from a thread supplying the data. Using and instance of Handler and calling post the data threa

[android-developers] Re: How to update the UI from a timer

2008-03-23 Thread MobileBen
Hey. I have the same problem updating the Timer. I tried now for hours but I don't get it. Can you perhaps tell me how you solved the problem. Can you perhaps send me some code? Thx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G