[android-developers] Activity GUI updated by thread data: implementation error?

2011-09-08 Thread giangiammy
Hi all, I have an activity updating the GUI with data coming from a socket. In my activity I implemented an Handler: int REFRESH = 1; final Handler hRefresh = new Handler(){ @Override public void handleMessage(Message msg) { Integer i1; Integer i2; i1 =

Re: [android-developers] Activity GUI updated by thread data: implementation error?

2011-09-08 Thread Rafael Maas
Try using a async thread to run the update socket method and update your interface using http://developer.android.com/reference/android/app/Activity.html#runOnUiThread(java.lang.Runnable) 2011/9/8 giangiammy giangia...@gmail.com: Hi all, I have an activity updating the GUI with data coming

Re: [android-developers] Activity GUI updated by thread data: implementation error?

2011-09-08 Thread Miguel Morales
That looks correct, your issue may lie somewhere else. On Thu, Sep 8, 2011 at 9:52 AM, Rafael Maas rafaelm...@gmail.com wrote: Try using a async thread  to run the update socket method  and update your interface using

Re: [android-developers] Activity GUI updated by thread data: implementation error?

2011-09-08 Thread Kostya Vasilyev
signal 11 is a segmentation fault, probably in native code. 08.09.2011 10:52, giangiammy пишет: D/Zygote ( 529): Process 650 terminated by signal (11) -- Kostya Vasilyev -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this

Re: [android-developers] Activity GUI updated by thread data: implementation error?

2011-09-08 Thread Miguel Morales
BTW, this line seems strange: Message msg = Message.obtain(hRefresh, 1, i1, i2); The way I do it is by using a bundle with the message and putting whatever data in the bundle. On Thu, Sep 8, 2011 at 10:14 AM, Kostya Vasilyev kmans...@gmail.com wrote: signal 11 is a segmentation fault, probably