Esempio n. 1
0
 @OnClick({
   R.id.layout_back,
   R.id.img_fate_icon,
   R.id.btn_jiahei,
   R.id.img_fate_dislike,
   R.id.img_fate_like
 })
 protected void widgetClick(View v) {
   // TODO Auto-generated method stub
   switch (v.getId()) {
     case R.id.layout_back: // 返回
       context.finish();
       break;
     case R.id.img_fate_icon:
       StatService.onEvent(context, "click-nvshenxiu-img", "eventLabel", 1);
       if (person != null) {
         Intent perintent = new Intent(context, FragmentToActivity.class);
         perintent.putExtra("who", "personal");
         perintent.putExtra("user_id", person.getUser_id());
         perintent.putExtra("distance", "");
         context.startActivity(perintent);
       }
       break;
     case R.id.btn_jiahei:
       Intent intent = new Intent(context, MyShowUploadActivity.class);
       intent.putExtra("type", 1);
       context.startActivity(intent);
       break;
     case R.id.img_fate_dislike:
       if (BasicUtils.isFastDoubleClick()) {
         return;
       }
       StatService.onEvent(context, "click-no-dating-button", "eventLabel", 1);
       getHttpData(1);
       break;
     case R.id.img_fate_like:
       if (BasicUtils.isFastDoubleClick()) {
         return;
       }
       StatService.onEvent(context, "click-dating-button", "eventLabel", 1);
       if (person != null) {
         Intent perintent = new Intent(context, FragmentToActivity.class);
         perintent.putExtra("who", "personal");
         perintent.putExtra("user_id", person.getUser_id());
         perintent.putExtra("distance", "");
         context.startActivity(perintent);
       }
       getHttpData(2);
       break;
     default:
       break;
   }
 }
Esempio n. 2
0
 @Override
 public void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
   checkLogin();
   StatService.onResume(this);
 }
 public boolean b() {
   try {
     boolean bool = ad.a(FexApplication.a()).aq();
     try {
       l = ad.a(FexApplication.a()).ar();
       if ((!bool) && (l != 0L) && (System.currentTimeMillis() - l < 1296000000L)) {
         h = false;
         if ((!h) || (!g) || ((!FexApplication.a().g()) && ("FileExplorer".equals(i)))) {
           break label130;
         }
         StatService.onResume(j);
         ad.a(FexApplication.a()).d(System.currentTimeMillis());
         return true;
       }
     } catch (Exception localException) {
       for (; ; ) {
         localException.printStackTrace();
         long l = 0L;
         continue;
         h = true;
       }
     }
     return false;
   } catch (Throwable localThrowable) {
     localThrowable.printStackTrace();
   }
 }
  @Override
  protected void onResume() {
    StatService.onResume(this);
    this.wakeLock.acquire();

    super.onResume();
  }
 public void c(String paramString1, String paramString2) {
   if ((h)
       && (g)
       && ((FexApplication.a().g()) || (!"FileExplorer".equals(i)))
       && (c(paramString1))) {
     StatService.onEvent(j, paramString1, paramString2);
   }
 }
Esempio n. 6
0
 @Override
 public void onPause() {
   // TODO Auto-generated method stub
   super.onPause();
   if (pop != null && pop.isShowing()) {
     pop.dismiss();
   }
   StatService.onPause(this);
 }
 public void f(String paramString1, String paramString2) {
   if ((h)
       && (g)
       && ((FexApplication.a().g()) || (!"FileExplorer".equals(i)))
       && (e(paramString1))
       && (b(paramString1, Long.MAX_VALUE))) {
     StatService.onEvent(j, paramString1, paramString2);
     a(paramString1, System.currentTimeMillis());
   }
 }
 public boolean c() {
   try {
     if ((h) && (g) && ((FexApplication.a().g()) || (!"FileExplorer".equals(i)))) {
       StatService.onPause(j);
       return true;
     }
   } catch (Throwable localThrowable) {
     localThrowable.printStackTrace();
   }
   return false;
 }
 @Override
 public void onClick(View v) {
   switch (v.getId()) {
     case R.id.exitapp:
       // 统计用户点击退出应用
       StatService.onEvent(SettingActivity.this, "exit_app", "exit");
       ((LoveNotificationApplication) this.getApplication()).stopAPP();
       break;
     case R.id.low_power_bt:
       boolean flag0 = !lowPowerbt.isSelected();
       lowPowerbt.setSelected(flag0);
       PreferenceShareUtil.saveLowPowerFlag(this, !PreferenceShareUtil.getLowPowerFlag(this));
       // 统计用户设置低电量提醒
       StatService.onEvent(SettingActivity.this, "battery_alert", flag0 + "");
       break;
     case R.id.bt_feeling_setting:
       boolean flag1 = !feelingBt.isSelected();
       System.out.println("选择了什么东西--->" + flag1);
       feelingBt.setSelected(flag1);
       PreferenceShareUtil.saveUseFeeling(this, !PreferenceShareUtil.getUseFeeling(this));
       StatService.onEvent(SettingActivity.this, "feeling_set", flag1 + "");
       break;
     case R.id.zheng_sound_bt:
       boolean flag2 = !timeSoundbt.isSelected();
       timeSoundbt.setSelected(flag2);
       PreferenceShareUtil.saveZhengTimeFlag(this, !PreferenceShareUtil.getZhengTimeFlag(this));
       // 统计用户设置整点报时提醒
       StatService.onEvent(SettingActivity.this, "time_alert", flag2 + "");
       break;
     case R.id.lo_setting_back:
       onBackPressed();
       break;
     default:
       break;
   }
 }
  private void tradeNoHttp() {

    final ProgressDialog progresdialog =
        ProgressDialog.show(ChargeBanFuTongActivity.this, "", "正在连接...", true, true);

    SafelotteryHttpClient.post(
        this,
        "3202",
        "bftPay",
        initDate(),
        new TypeMapHttpResponseHandler(this, true) {

          @Override
          public void onSuccess(int statusCode, Map mMap) {
            if (mMap != null) {
              String url = (String) mMap.get("requestUrl");
              if (!TextUtils.isEmpty(url)) {
                Intent intent = new Intent("android.intent.action.VIEW", Uri.parse(url));
                startActivityForResult(intent, 0);
              } else {
                LogUtil.CustomLog("TAG", "ChargeBanFuTongActivity -- URL is null");
                ToastUtil.diaplayMesShort(getApplicationContext(), "请求失败,请重试");
              }
            } else {
              LogUtil.CustomLog("TAG", "ChargeBanFuTongActivity -- Map is null");
              ToastUtil.diaplayMesShort(getApplicationContext(), "请求失败,请重试");
            }
          }

          @Override
          public void onFailure(int statusCode, String mErrorMsg) {
            // TODO Auto-generated method stub

          }

          @Override
          public void onFinish() {
            if (progresdialog.isShowing()) {
              progresdialog.dismiss();
            }
          }
        });
    StatService.onEvent(ChargeBanFuTongActivity.this, "total-fund", "所有充值提交请求-储蓄卡", 1);
  }
Esempio n. 11
0
  @Override
  public void onClick(View v) {
    switch (v.getId()) {
      case R.id.zhilifangcheng:
        StatService.onEvent(
            mContext, StatServiceEnv.MAIN_TOOLS_EVENT_ID, StatServiceEnv.MAIN_TOOLS_LABEL, 1);
        startActivity(new Intent(mContext, ZhiliFangChengListActivity.class));
        break;
      case R.id.guideone:
        StatService.onEvent(
            mContext, StatServiceEnv.MAIN_TOOLS_EVENT_ID, StatServiceEnv.MAIN_TOOLS_LABEL, 1);
        startActivity(new Intent(mContext, Guide01Activity.class));
        break;
      case R.id.grow_advice:
        StatService.onEvent(
            mContext,
            StatServiceEnv.MAIN_GROW_ADVICE_EVENT_ID,
            StatServiceEnv.MAIN_GROW_ADVICE_LABEL,
            1);
        startActivity(new Intent(mContext, GrowAdviceActivity.class));
        break;
      case R.id.baby_heigth:
        StatService.onEvent(
            mContext,
            StatServiceEnv.MAIN_BABY_HEIGHT_EVENT_ID,
            StatServiceEnv.MAIN_BABY_HEIGHT_LABEL,
            1);
        startActivity(new Intent(mContext, BabyHeightActivity.class));
        break;
      case R.id.guide:
        StatService.onEvent(
            mContext, StatServiceEnv.MAIN_GUIDE_EVENT_ID, StatServiceEnv.MAIN_GUIDE_LABEL, 1);
        startActivity(new Intent(mContext, GuideListActivity.class));
        break;
      case R.id.yuerzhinan:
        StatService.onEvent(
            mContext,
            StatServiceEnv.MAIN_YUERZHINAN_EVENT_ID,
            StatServiceEnv.MAIN_YUERZHINAN_LATER_LABEL,
            1);
        startActivity(new Intent(mContext, YuErZhiNanListActivity.class));
        break;

      default:
        break;
    }
  }
Esempio n. 12
0
 @Override
 public void incEventValue(String type, String subType, int value) {
   StatService.onEvent(mContext, type + "_" + subType, "", value);
 }
Esempio n. 13
0
 @Override
 public void incEventCount(String type, String subType) {
   StatService.onEvent(mContext, type + "_" + subType, "");
 }
Esempio n. 14
0
 @Override
 public void onPause() {
   // TODO Auto-generated method stub
   super.onPause();
   StatService.onPause(context);
 }
Esempio n. 15
0
 public void d(String paramString1, String paramString2) {
   if (FexApplication.a().g()) {
     StatService.onEvent(j, paramString1, paramString2);
   }
 }
  public void onResume() {

    super.onResume();
    StatService.onResume(this);
  }
  public void onPause() {

    super.onPause();
    StatService.onPause(this);
  }
 @Override
 protected void onPause() {
   StatService.onPause(this);
   this.wakeLock.release();
   super.onPause();
 }
 @Override
 protected void onPause() {
   super.onPause();
   StatService.onPause(this);
 }
Esempio n. 20
0
 public static void a(String paramString) {
   f = paramString;
   StatService.setAppChannel(f);
 }
Esempio n. 21
0
 /* (non-Javadoc)
  * @see android.app.Activity#onResume()
  */
 @Override
 protected void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
   StatService.onResume(RegActivity.this);
 }