ProgressDialog进度条对话框

final ProgressDialog ps = ProgressDialog.show(MainActivity.this, "搜索网络", "请等待...");
                new Thread(){
                    @Override
                    public void run() {
                        try {
                            sleep(11000);
                        } catch (Exception e) {
                            // TODO: handle exception
                        }
                        finally{
                            ps.dismiss();
                        }
                    }
                }.start();
                ps.show();

 

posted @ 2015-10-16 17:50  aaddrrooiidd  阅读(109)  评论(0编辑  收藏  举报