我想显示ProgressDialog,但ProgressDialog从未真正呈现过! 我想结束这个过程来开始下一个状态。 这是我的代码:
ProgressDialog waitProgressDialog = new ProgressDialog(getContext());
waitProgressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
waitProgressDialog.setMessage("please wait..");
waitProgressDialog.setOnShowListener(new OnShowListener() {
@Override
public void onShow(DialogInterface dialog) {
ExirDebugger.println("----------TEST999999 START");
///same sqlit datasouce select
ExirDebugger.println("----------TEST999999 END");
}
});
waitProgressDialog.show();
当所有工作结束时,android不会渲染任何东西! 有谁可以帮助我?
答案 0 :(得分:0)
我用
ProgressDialog dialog = ProgressDialog.show(className.this, "", "Loading. Please wait...", true);
//Do stuff
dialog.dismiss();