3

我想显示 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 在所有工作结束时不渲染任何东西!谁能帮我?

4

1 回答 1

0

我用

ProgressDialog dialog = ProgressDialog.show(className.this, "", "Loading. Please wait...", true);

 //Do stuff

dialog.dismiss();
于 2013-11-14T07:19:22.787 回答