示例#1
0
 public static void statsReportByMta(
     Context context, String eventId, String key, String value, String key1, String value1) {
   Properties prop = new Properties();
   prop.setProperty(key, value);
   prop.setProperty(key1, value1);
   com.tencent.stat.StatService.trackCustomKVEvent(context, eventId, prop);
 }
示例#2
0
文件: a.java 项目: KilFer/miband
 public static void c(Context paramContext, QQToken paramQQToken) {
   b(paramContext, paramQQToken);
   String str1 = paramQQToken.getAppId();
   String str2 = "Aqc" + str1;
   StatConfig.setAutoExceptionCaught(false);
   StatConfig.setEnableSmartReporting(true);
   StatConfig.setSendPeriodMinutes(1440);
   StatConfig.setStatSendStrategy(StatReportStrategy.PERIOD);
   StatConfig.setStatReportUrl("http://cgi.connect.qq.com/qqconnectutil/sdk");
   try {
     StatService.startStatService(paramContext, str2, "1.0.0");
     return;
   } catch (MtaSDkException localMtaSDkException) {
     Log.e("DEBUG", "MTA init Failed.");
   }
 }
示例#3
0
  private void backToSetting(int pos) {
    AppInfo appSelected = dataList.get(pos);
    AUTManager.pkn = appSelected.packageName;
    AUTManager.apn = appSelected.appName;
    AUTManager.appic = appSelected.appIcon;
    Env.CUR_APP_NAME = appSelected.packageName;

    // 清除旧的AUT_CLIENT
    ClientManager.getInstance().removeClient(ClientManager.AUT_CLIENT);

    // 创建新的AUT_CLIENT
    ClientFactory cf = new SingleInstanceClientFactory();
    cf.orderClient(ClientManager.AUT_CLIENT, ClientManager.AUT_CLIENT.hashCode(), null, null);

    // MTA记录选中的AUT
    Properties prop = new Properties();
    prop.setProperty("pkgName", AUTManager.pkn);
    StatService.trackCustomKVEvent(this, "Selected AUT", prop);
    this.finish();
  }
示例#4
0
文件: a.java 项目: KilFer/miband
 public static void d(Context paramContext, QQToken paramQQToken) {
   b(paramContext, paramQQToken);
   if (paramQQToken.getOpenId() != null)
     StatService.reportQQ(paramContext, paramQQToken.getOpenId());
 }
示例#5
0
文件: a.java 项目: KilFer/miband
 public static void a(
     Context paramContext, QQToken paramQQToken, String paramString, String[] paramArrayOfString) {
   b(paramContext, paramQQToken);
   StatService.trackCustomEvent(paramContext, paramString, paramArrayOfString);
 }
示例#6
0
 public static void statsReportByMta(Context context, String eventId, String lable) {
   com.tencent.stat.StatService.trackCustomEvent(context, eventId, lable);
 }