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?