Beispiel #1
0
 @Override
 public void onPostExecute(String resultCode, String clientName) {
   if (resultCode.contains(WsAsyncTaskBase.RESULT_CODE_SUCCESS_FAIL)) {
     String code = resultCode.replace(WsAsyncTaskBase.RESULT_CODE_SUCCESS_FAIL, "");
     // GAv4
     HitBuilders.EventBuilder hbe = new HitBuilders.EventBuilder();
     hbe.setCustomDimension(1, MyaccountData.sharedInstance().getMemberPK());
     // ((PrivaliaApplication)getApplicationContext()).trackEvent("Error", "/app/myaccount/orders",
     // code, 0, hbe);
     GATrack.getInstance().trackEvent(this, "Error", "/app/myaccount/orders", code, 0, hbe);
     showDialogFragmentSimple(R.string.error, getResourceId(code), R.string.accept, null);
   } else if (resultCode.contains(WsAsyncTaskBase.RESULT_CODE_SUCCESS_OK)) {
     loadOrders();
   } else {
     dismissProgressDialog();
     String stringCode = resultCode.replace(WsAsyncTaskBase.RESULT_CODE_SUCCESS_FAIL, "");
     showDialogFragmentSimple(
         R.string.error,
         getResourceId(stringCode),
         R.string.accept,
         new OnClickListener() {
           @Override
           public void onClick(View v) {
             finish();
           }
         });
   }
   dismissProgressDialog();
 }
Beispiel #2
0
  // ACTIVITY + INIT
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    actionBarType = ActionBarType.ACTIONBAR_WITH_OVERFLOW_AND_CART;

    // GAv4
    HitBuilders.AppViewBuilder hba = new HitBuilders.AppViewBuilder();
    hba.setCustomDimension(1, MyaccountData.sharedInstance().getMemberPK());
    // ((PrivaliaApplication)getApplicationContext()).trackView("/app/myaccount/orders", hba);
    GATrack.getInstance().trackView(this, "/app/myaccount/orders", hba);

    initUI();
  }