Android thread showing result on debugging but not on running -


i trying implement thread in application. working web service , fetching show results. time being showing progress dialog using thread. following thread implementation :

final handler handler=new handler();       progdialog = progressdialog.show(departments.this.getparent(), "loading... ", "please wait....", true);       new thread(new runnable() {       @override      public void run() {       // todo auto-generated method stub       suid = downloaddata();   struid = suid.struid; dep = download(struid); departments = dep.departments; depid = dep.depid;  handler.post(new runnable() {   @override  public void run() {   // todo auto-generated method stub   progdialog.dismiss();  } });    }     }).start();   

when debug application seems fine , results shown accordingly. when run application, progress dialog seen results not displayed.
there missing?


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -