dialog = new ProgressDialog(activity);
dialog.show();
synchronized (this) {
Log.d(LOG_TAG, "Waiting for closed rides to be loaded");
try {
wait();
} catch (InterruptedException e) {
}
}
}
dialog.dismiss();
我一直在使用上面的進度條,進度條是怎麼過不顯示如何顯示進度條,當線程等待
您立即調用解僱進度條,所以從活動其解聘。評論該行並檢查。 –
爲什麼這樣做?你的要求是什麼?有最好的方法來使用Asynctask或處理器 –