コード例 #1
0
 @Override
 public void onResultSuccess(String reqUrl, Object data) {
   switch (reqUrl) {
     case D.API_USER_CHPWD:
       mProgressDialog.dismiss();
       new AlertDialog.Builder(this)
           .setTitle("密码修改")
           .setMessage("密码修改成功")
           .setPositiveButton(
               "确定",
               new OnClickListener() {
                 @Override
                 public void onClick(DialogInterface dialog, int which) {
                   finish();
                   Intent intent = new Intent(ForgetPasswordActivity.this, LoginActivity.class);
                   startActivity(intent);
                 }
               })
           .show();
       break;
     case D.API_USER_SENDYZM:
       break;
     default:
       break;
   }
 }
コード例 #2
0
 @Override
 public void onResultError(String reqUrl, String errMsg) {
   // TODO Auto-generated method stub
   switch (reqUrl) {
     case D.API_USER_CHPWD:
       mProgressDialog.dismiss();
       break;
     default:
       break;
   }
   Toast.makeText(this, errMsg, Toast.LENGTH_SHORT).show();
 }
コード例 #3
0
 public void onClickPostBtn(View v) {
   mProgressDialog = CustomProgressDialog.createDialog(this);
   mProgressDialog.show();
   mActor.postEdit();
 }