初始化时加上pd.setMax(最大的值); 

解决方案 »

  1.   

    加上了也不显示进度啊。pd = new ProgressDialog(this);
    pd.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
    pd.setTitle("下载");
    pd.setIcon(R.drawable.ic_launcher);
    pd.setMessage("正在下载");
    pd.setMax(100);
    pd.setIndeterminate(true);
    pd.setCancelable(true);
    pd.setButton(DialogInterface.BUTTON_POSITIVE, "确定",
      

  2.   

    加上了也不显示进度。
    pd = new ProgressDialog(this);
    pd.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);
    pd.setTitle("下载");
    pd.setIcon(R.drawable.ic_launcher);
    pd.setMessage("正在下载");
    pd.setMax(100);
    pd.setIndeterminate(true);
    pd.setCancelable(true);
    pd.setButton(DialogInterface.BUTTON_POSITIVE, "确定",
      

  3.   

    pd.setIndeterminate(false);
    就改一处就可以显示数字了。哈哈。