当前位置: 首页>>代码示例>>Java>>正文


Java AnalyticsConfig.setChannel方法代码示例

本文整理汇总了Java中com.umeng.analytics.AnalyticsConfig.setChannel方法的典型用法代码示例。如果您正苦于以下问题:Java AnalyticsConfig.setChannel方法的具体用法?Java AnalyticsConfig.setChannel怎么用?Java AnalyticsConfig.setChannel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.umeng.analytics.AnalyticsConfig的用法示例。


在下文中一共展示了AnalyticsConfig.setChannel方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onResume

import com.umeng.analytics.AnalyticsConfig; //导入方法依赖的package包/类
protected void onResume() {
    super.onResume();
    BaseApplication.getInstance().startShake(getActivityName());
    if (this.mRedPacketEntry != null) {
        this.mRedPacketEntry.onResume();
    }
    if (mHomeKeyEventReceiver != null) {
        mHomeKeyEventReceiver.setIsHomeClicked(false);
    }
    try {
        if (LetvUtils.isAppOnForeground(this.mContext) && !isLoginStatatistics) {
            isLoginStatatistics = true;
            statisticsFirstLaunch();
        }
        IRMonitor.getInstance().onResume(this);
        if (LetvConfig.isUmeng()) {
            AnalyticsConfig.setChannel(LetvConfig.getUmengID());
            MobclickAgent.onResume(this);
        }
    } catch (Exception e) {
        LogInfo.LogStatistics("main activity on resume exception:" + e.getMessage());
    } catch (OutOfMemoryError e2) {
        BaseApplication.getInstance().onAppMemoryLow();
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:26,代码来源:LetvBaseActivity.java

示例2: init

import com.umeng.analytics.AnalyticsConfig; //导入方法依赖的package包/类
private void init() {
    AnalyticsConfig.setChannel(AppUtils.getChannel(context));
    DnspodFree.getIpWithHost(BooheeClient.getHost(BooheeClient.API));
    DnspodFree.getIpWithHostNoCache(BooheeClient.getHost(BooheeClient.BH_ALL), false);
    App.checkDB(context);
    initBHLibrary();
    FileCache.init(context);
    PushManager.getInstance().initPush(context);
    MultiImageHelper.initMultiSelctor();
    ShareManager.init(context, "http://bohe-house.u.qiniudn.com/android/logo_256x256.png");
    PatchHelper.init(getContext());
    MeiQiaHelper.initSDK();
    if (BleUtil.hasBleFeature(context)) {
        QNApiManager.getApi(context).initSDK("bohe2016070708121217", true, new
                QNResultCallback() {
            public void onCompete(int i) {
            }
        });
    }
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:21,代码来源:MyApplication.java

示例3: init

import com.umeng.analytics.AnalyticsConfig; //导入方法依赖的package包/类
private void init() {
    Fabric.with(this, new Crashlytics());
    SharedPreferences pref = getSharedPreferences("LetvActivity", 32768);
    if (!pref.contains("isFirstIn")) {
        String str = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date(System.currentTimeMillis()));
        Editor editor = pref.edit();
        editor.putString("firstRunAppTime", str);
        editor.putBoolean("isFirstIn", false);
        editor.commit();
    }
    if (BaseApplication.getAppStartTime() == 0) {
        BaseApplication.setAppStartTime(System.currentTimeMillis());
    }
    PreferencesManager.getInstance().setLesoNotification(false);
    boolean isNewApp = isNewAppVersion4Leso(PreferencesManager.getInstance().getVersionCode4Leso(), LetvUtils.getClientVersionCode());
    if (isNewApp) {
        LogInfo.log("Emerson", "--------------------isNewApp = " + isNewApp);
        PreferencesManager.getInstance().setIsShack(false);
    }
    initLesoIcon_notification(this);
    staticsCrashInfo();
    LetvApplication.getInstance().setIsShack(PreferencesManager.getInstance().isShack());
    LetvHttpConstant.setDebug(LetvConfig.isDebug());
    getDefaultImage(this);
    LetvUtils.setUa(this);
    JarUtil.sHasApplyPermissionsSuccess = true;
    if (ApkManager.getInstance().getPluginInstallState("com.letv.android.lite") != 1) {
        LogInfo.log("plugin", "重新启动了乐视视频,且liteapp之前未成功安装,重试重新下载");
        JarUtil.updatePlugin(this, 1, true);
    }
    if (LetvApplication.getInstance().hasInited()) {
        onAppInited();
    } else {
        startAppInitThread();
    }
    new RetentionRateUtils().doRequest(1);
    if (LetvConfig.isUmeng()) {
        AnalyticsConfig.setChannel(LetvConfig.getUmengID());
    }
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:41,代码来源:SplashActivity.java

示例4: onCreate

import com.umeng.analytics.AnalyticsConfig; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    CrashReport.initCrashReport(getApplicationContext(), Constant.BUGLY_APP_ID,
            MainApp.BUILD_TYPE == MainApp.DEBUG);
    if (BizLogic.getUserInfo() != null) {
        CrashReport.putUserData(this, "userId", BizLogic.getUserInfo().get_id() + "\n");
        CrashReport.putUserData(this, "email", BizLogic.getUserInfo().getEmail() + "\n");
        CrashReport.putUserData(this, "phone", BizLogic.getUserInfo().getPhoneNumber());
    }

    setContentView(R.layout.activity_main);
    ButterKnife.inject(this);

    // 渠道名
    final String market = PackerNg.getMarket(this);
    if (StringUtil.isNotBlank(market)) {
        AnalyticsConfig.setChannel(market);
    }
    SharedPreferences preferences = getSharedPreferences("shortcut", MODE_PRIVATE);
    if (!preferences.getBoolean("is_create_short", false))
        addShortCut();
    MobclickAgent.updateOnlineConfig(this);

    initData();
}
 
开发者ID:jianliaoim,项目名称:talk-android,代码行数:28,代码来源:MainActivity.java

示例5: initializeUmengConfig

import com.umeng.analytics.AnalyticsConfig; //导入方法依赖的package包/类
@Override
public void initializeUmengConfig() {
    AnalyticsConfig.setAppkey(this, "55018d77fd98c5901e000a09");
    AnalyticsConfig.setChannel("SimplifyReader");
}
 
开发者ID:Dreamer206602,项目名称:SimplifyReader2,代码行数:6,代码来源:SplashActivity.java

示例6: setChannel

import com.umeng.analytics.AnalyticsConfig; //导入方法依赖的package包/类
public static void setChannel(String channel){
    AnalyticsConfig.setChannel(channel);
}
 
开发者ID:MoonRune,项目名称:CuiTrip,代码行数:4,代码来源:AnalyticsHelper.java


注:本文中的com.umeng.analytics.AnalyticsConfig.setChannel方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。