use a Handler object...

Handler uiHandler=new Handler();

then inside ur funcion:
uiHandler.post(new Runnable(){
void run(){
<here u can change components in the ui thread.>
}
});

On Thu, Aug 20, 2009 at 1:12 PM, tstanly <[email protected]> wrote:

>
> hi all,
>
> I was define a new thread for a task,
> but when task is complete, I must to refresh my listview,
> however I will get the error for just can use main thread to change
> view,
>
>
> so, any idea for it??
>
> thanks!!
> >
>

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