Re: [android-developers] Problem with Timer and ImageView (with setImageResource)

2009-11-30 Thread Mark Murphy
Timer uses a background thread. You cannot modify the UI from a background thread, such as changing an ImageView's resource. You will need to use a Handler or something to do the update on the UI thread. > I have a little problem with a Timer ; > > here is my code : > > timer = new Timer(); > time

[android-developers] Problem with Timer and ImageView (with setImageResource)

2009-11-30 Thread Stam
Joined: 25 Nov 2009 Posts: 4 PostPosted: Mon Nov 30, 2009 1:59 pmPost subject: Timer and ImageView Reply with quote Edit/Delete this post Delete this post Hi all, I have a little problem with a Timer ; here is my code : timer = new Timer(); timer.schedule(new timerLaunch(), 1000);