コード例 #1
0
 private void startProgressDialog() {
   if (null == pdSaveProgram) {
     pdSaveProgram = CustomProgressDialog.createDialog(this, R.layout.progress_dialog);
     pdSaveProgram.setMessage(getString(R.string.SaveProgram));
   }
   pdSaveProgram.show();
 }
コード例 #2
0
 private void startProgressDialog() {
   if (null == progressDialog) {
     progressDialog = CustomProgressDialog.createDialog(this, R.layout.progress_loading);
   }
   progressDialog.show();
   progressDialog.setOnKeyListener(
       new OnKeyListener() {
         public boolean onKey(DialogInterface dialog, int keyCode, KeyEvent event) {
           if (keyCode == KeyEvent.KEYCODE_BACK) {
             return true;
           }
           return false;
         }
       });
 }
コード例 #3
0
 private void stopProgressDialog() {
   if (null != progressDialog) {
     progressDialog.dismiss();
     progressDialog = null;
   }
 }
コード例 #4
0
 private void stopProgressDialog() {
   if (null != pdSaveProgram) {
     pdSaveProgram.dismiss();
     pdSaveProgram = null;
   }
 }