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; } }
全站熱搜
留言列表