yes...
but a better way to use handler for progress dialogbox is with messages like
this:
Handler h=new Handler(){
@Override
void handleMessage(Message msg){
}
};
send message for each progress update...
2009/8/20 tstanly <[email protected]>
>
> thank for reply...
>
> but does handler can use with progressdialog??
>
> thanks!
>
> On 8月20日, 下午4時35分, Saurav Mukherjee <[email protected]>
> wrote:
> > 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
-~----------~----~----~----~------~----~------~--~---