Thank you. i found the thread should be changed in one theread that i
created at first.

On 6월30일, 오전6시34분, tobias429 <[email protected]> wrote:
> It's as per the error message that you get. When you create a view in
> one thread (like e.g. within your main activity), you can not change
> this view from another thread. There are various ways how to work
> around this.
>
> One is as follows:
> In your thread, create a sub-class:
>
>     public class ChangeView implements java.lang.Runnable {
>         public void run() {
>             //Do whatever changes to the view need to be done
>         }
>     }
>
> Create an instance of this class in your thread. Whenever you need the
> code in the class to be executed, post it towards your main view via
> view.post().
>
> On Jun 30, 10:43 am, choi <[email protected]> wrote:
>
>
>
> > I found it there is prablem when i changed it in another thread. it
> > always said me. how to changed it without error message.
>
> > 06-30 08:35:03.102: ERROR/AndroidRuntime(627): android.view.ViewRoot
> > $CalledFromWrongThreadException: Only the original thread that created
> > a view hierarchy can touch its views.- 원본 텍스트 숨기기 -
>
> - 원본 텍스트 보기 -

-- 
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