예제 #1
0
  protected void displayProgressDialog() {

    try {
      if (progressDialog == null) {
        progressDialog = new MyProgressDialog(getActivity());
      }
      progressDialog.show();
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
예제 #2
0
  protected void dismissProgressDialog() {

    if (progressDialog != null && progressDialog.isShowing()) {
      progressDialog.dismiss();
    }
  }