Exemplo n.º 1
0
    @Override
    protected void onPreExecute() {
      super.onPreExecute();
      cld = CommonLoadingDialog.create(FillOrderActivity.this);
      cld.setCanceledOnTouchOutside(false);
      cld.setOnCancelListener(
          new OnCancelListener() {

            @Override
            public void onCancel(DialogInterface dialog) {
              cancel(true);
            }
          });
      cld.show();
    }
Exemplo n.º 2
0
 @Override
 protected void onPostExecute(OrderSubmitSuccessJson result) {
   super.onPostExecute(result);
   if (!canGoon()) return;
   if (null != cld) {
     cld.cancel();
     cld = null;
   }
   if (null != result) {
     if (result.code == 0) {
       Intent intent = new Intent(FillOrderActivity.this, SubmitOrderSuccess.class);
       Session.getSession().put("orderInfo", result.data);
       startActivity(intent);
     } else {
       showToast(result.errMsg);
     }
   }
 }
Exemplo n.º 3
0
 @Override
 protected void onPostExecute(ArayListJson result) {
   super.onPostExecute(result);
   if (!canGoon()) return;
   mPromptView.showContent();
   if (null != cld) {
     cld.cancel();
     cld = null;
   }
   if (null != result) {
     if (result.code == 0) {
       if (null != result.data && result.data.size() > 0) {
         mArayList = result.data;
         mListView.setAdapter(new MyAdapter());
       } else {
         mPromptView.showEmpty();
       }
     } else {
       showToast(result.errMsg);
     }
   }
 }