加载进度条直到线程结束

private ProgressDialog progressDialog;

String tip = getBaseContext().getResources().getString(

                R.string.str_thread_progressing);

        progressDialog = ProgressDialog.show(context, "thread is progressing.....", tip,

                true);



new Threas(){

private void run(){

//surround with try..catch..finally{

//progressDialog.dismiss();

}



}.start();

 

你可能感兴趣的:(进度条)