当我按我的登录按钮有一个web服务调用,在web服务调用时,我必须显示进度对话框,并在接收web服务后返回到下一页的意图...但它总是diplays当意图也称进度对话框空白页面未显示线程实现
if(Utility.isNetworkAvailable(currActivity)){
// Utility.showProgressDialog(currActivity);
new Thread() {
@Override
public void run() {
currActivity.runOnUiThread(new Runnable() {
@Override
public void run() {
Intent intent = new Intent(Login.this, Listviewer.class);
startActivity(intent);
tempSplashTread = new Thread() { // Thread for showing wait cursor
@Override
public void run() {
currActivity.runOnUiThread(new Runnable() {
@Override
public void run() {
myProgressDialog = new ProgressDialog(InfraSignPdfList.this);
myProgressDialog.setMessage("Loading... ");
myProgressDialog.show();
}
});
}
};
tempSplashTread.start();
finish();
}
});
}
}.start();
}else {
Utility.noNetworkDialog(currActivity);
}
请格式化您的代码,使其可读。 – 2010-12-06 08:01:58