You need to have a handler which will be updating the UI after your
thread has done processing.

Look at the examples.

Regards,
Kumar Bibek

http://tech-droid.blogspot.com

On Dec 24, 8:59 am, Nmix <[email protected]> wrote:
> On Dec 23, 9:23 pm, Martin <[email protected]> wrote:
>
> > Here is the error I get:
>
> > Leonard Frog [Android Application]
> >         DalvikVM[localhost:8613]
> >                 Thread [<3> main] (Running)
> >                 Thread [<15> Binder Thread #3] (Running)
> >                 Thread [<13> Binder Thread #2] (Running)
> >                 Thread [<11> Binder Thread #1] (Running)
> >                 Thread [<17> Thread-9] (Suspended (exception ViewRoot
> > $CalledFromWrongThreadException))
> >                         LeonardFrog.doDraw() line: 78
> >                         LeonardFrog.access$2(LeonardFrog) line: 76
> >                         LeonardFrog$AnimationLoop.run() line: 151
> >                         Thread.run() line: 1058
>
> You must only touch views in the UI (main) thread.

-- 
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]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to