close
private  ProgressDialog progressDialog ;//宣告
new Load().execute();//呼叫

class Load extends AsyncTask<String, String, String> {

    /**
     * Before starting background thread Show Progress Dialog
     * */
    @Override
    protected void onPreExecute() {
        super.onPreExecute();

        progressDialog = ProgressDialog.show(bulletin_board_show.this, "載入中", "請稍後", true);

    }


    /**
     * getting All products from url
     * */
    protected String doInBackground(String... args) {


      

        progressDialog.dismiss();//關閉


        return null;

    }



}
arrow
arrow
    全站熱搜

    邦邦 發表在 痞客邦 留言(0) 人氣()