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 thread is able to update the UI or really let
the UI know that the data changed..

public void run(){
  this.notifyDataSetChanged();
}

public void dataDownloadComplete(Model obj){
  dataList.add((SomeObject)obj);
  messageHandler.post(this);
}



David



On Mar 23, 4:19 pm, MobileBen <[EMAIL PROTECTED]> wrote:
> 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 Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to