Re: [android-developers] Blinking Images

2011-01-16 Thread Felix long
在 2011年1月15日星期六,Kostya Vasilyev 写道: > Braco, > > You are using a Java Timer, which invokes your TimerTask on a background > thread. > In Android, only the original (UI) thread is allowed to touch the UI. > Touching the UI from a background thread, like your code does, produces > unpredictable r

Re: [android-developers] Blinking Images

2011-01-15 Thread Kostya Vasilyev
Braco, You are using a Java Timer, which invokes your TimerTask on a background thread. In Android, only the original (UI) thread is allowed to touch the UI. Touching the UI from a background thread, like your code does, produces unpredictable results (possibly a crash). This should help you ref

Re: [android-developers] Blinking Images

2011-01-14 Thread TreKing
On Thu, Jan 13, 2011 at 6:51 AM, braco_ wrote: > But if i start nothing happens how can i do that better that a image will > blinking? > Use. Your. Debugger. - TreKing

Re: [android-developers] Blinking Images

2011-01-14 Thread Kumar Bibek
Is your run method being executed? Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Thu, Jan 13, 2011 at 6:21 PM, braco_ wrote: > Hello, > > I have 4 Images >final ImageView redImage = (ImageView) findViewById > (R.id.circle_red); >final ImageView blueImage =

[android-developers] Blinking Images

2011-01-14 Thread braco_
Hello, I have 4 Images final ImageView redImage = (ImageView) findViewById (R.id.circle_red); final ImageView blueImage = (ImageView) findViewById (R.id.circle_blue); final ImageView greenImage = (ImageView) findViewById (R.id.circle_green); final ImageView yellowIm