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


Java MobclickAgent.openActivityDurationTrack方法代码示例

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


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

示例1: onCreate

import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    // 禁止默认的页面统计方式,这样将不会再自动统计Activity(默认页面统计只能统计Activity,不能统计Activity下面包含的Fragment)
    MobclickAgent.openActivityDurationTrack(false);

    LogUtils.getLogConfig().configAllowLog(!IS_RELEASE_VERSION)  // Log日志开关
            .configTagPrefix(getPackageName())  //设置Log日志Tag前缀:用包名
            .configShowBorders(true)
            .configLevel(LogLevel.TYPE_VERBOSE);

    if (IS_RELEASE_VERSION) {
        MobclickAgent.setDebugMode(false); // 友盟统计SDK,集成测试开关
    } else {
        MobclickAgent.setDebugMode(true);
    }

    initImageLoader(this); // 初始化ImageLoader
    SDKInitializer.initialize(this); // 初始化百度地图-注意:在SDK各功能组件使用之前都需要调用,因此我们建议该方法放在Application的初始化方法中
}
 
开发者ID:jpaijh,项目名称:TYT,代码行数:21,代码来源:MyApplication.java

示例2: onCreate

import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	//PushAgent.getInstance(this).onAppStart();
	MobclickAgent.openActivityDurationTrack(false);

	getWindow().setSoftInputMode(
			WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN
	);
	mBaseActivity.init(getBaseContext(), this);
	onActivityInit();
	LogUtil.d(TAG, "checktask onCreate:" + super.getClass().getSimpleName()
			+ "#0x" + super.hashCode() + ", taskid:" + getTaskId()
			+ ", task:" + new ActivityTaskUtils(this));
	abstracrRegist();
	getTopBarView().showSearch(hasSearch());

}
 
开发者ID:NewCasino,项目名称:browser,代码行数:19,代码来源:AppBaseActivity.java

示例3: onCreate

import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@Override
    public void onCreate() {
        super.onCreate();
        // 设置异常捕获处理类
        Thread.setDefaultUncaughtExceptionHandler(new ExceptionHandler(this));
        Session.get(this);
        mInstance = this;
        MobclickAgent.openActivityDurationTrack(false);
        //初始化友盟分享
        //开启debug模式,方便定位错误,具体错误检查方式可以查看http://dev.umeng.com/social/android/quick-integration的报错必看,正式发布,请关闭该模式
//        Config.DEBUG = true;
        UMShareAPI.get(this);
        initCacheFile(this);
        OpenInstall.init(this);
        //打开调试,便于看到Log
        OpenInstall.setDebug(false);

        initUmengPush();
    }
 
开发者ID:SavorGit,项目名称:Hotspot-master-devp,代码行数:20,代码来源:SavorApplication.java

示例4: onCreate

import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setSwipeBackEnable(false);
    if (initBundle(getIntent().getExtras())) {
        setContentView(getContentView());

        initWindow();

        ButterKnife.bind(this);
        initWidget();
        initData();
    } else {
        finish();
    }

    //umeng analytics
    MobclickAgent.setDebugMode(false);
    MobclickAgent.openActivityDurationTrack(false);
    MobclickAgent.setScenarioType(this, MobclickAgent.EScenarioType.E_UM_NORMAL);
}
 
开发者ID:hsj-xiaokang,项目名称:OSchina_resources_android,代码行数:22,代码来源:BaseActivity.java

示例5: onCreate

import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setSwipeBackEnable(false);
    initBundle(getIntent().getExtras());
    if (getLayoutId() != 0) {
        setContentView(getLayoutId());
    }
    initToolBar();
    initView();
    initData();
    //umeng analytics
    if (BuildConfig.DEBUG) {
        MobclickAgent.setDebugMode(true);
    }
    MobclickAgent.openActivityDurationTrack(false);
    MobclickAgent.setScenarioType(this, MobclickAgent.EScenarioType.E_UM_NORMAL);
}
 
开发者ID:coding-dream,项目名称:TPlayer,代码行数:19,代码来源:BaseActivity.java

示例6: onHandleIntent

import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@Override
    protected void onHandleIntent(@Nullable Intent intent) {
        //UMeng初始化
        MobclickAgent.setDebugMode(BuildConfig.IS_TEST);
        MobclickAgent.setCatchUncaughtExceptions(true);
        MobclickAgent.openActivityDurationTrack(false);

        //Logcat异常捕捉
//        CrashHandler.getInstance().initCrashHandler(getApplication());

        // init Feedback
//        FeedbackPlatform.init(this.getApplication());

        // init Share
        SharePlatform.init(this.getApplicationContext());
    }
 
开发者ID:Jusenr,项目名称:androidgithub,代码行数:17,代码来源:InitializeIntentService.java

示例7: onCreate

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

        MultiDex.install(getApplicationContext());

//        if (AppUtils.isNamedProcess(getApplicationContext(), getPackageName())) {
        //androidtools init
        AndroidTools.init(getApplicationContext(), BuildConfig.LOG_TAG);
        //UMeng init
        String umeng_appkey = AppUtils.getMetaDataString(getApplicationContext(), "UMENG_APPKEY");
        String umeng_channel = AppUtils.getMetaDataString(getApplicationContext(), "UMENG_CHANNEL");
        MobclickAgent.UMAnalyticsConfig config = new MobclickAgent.UMAnalyticsConfig(getApplicationContext(), umeng_appkey, umeng_channel);
        MobclickAgent.startWithConfigure(config);
        MobclickAgent.setDebugMode(BuildConfig.INNER_TEST);
        MobclickAgent.setCatchUncaughtExceptions(true);
        MobclickAgent.openActivityDurationTrack(false);
//        }
    }
 
开发者ID:Jusenr,项目名称:zxing_qrcode_demo,代码行数:20,代码来源:TotalApplication.java

示例8: initUmeng

import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
private void initUmeng(Context context) {
    MobclickAgent.
            startWithConfigure(
                    new MobclickAgent.UMAnalyticsConfig(context, C.UMENG_APP_KEY, C.UMENG_APP_CHANNEL)
            );
    // 禁止默认的页面统计方式,这样将不会再自动统计Activity
    MobclickAgent.openActivityDurationTrack(false);
}
 
开发者ID:z-chu,项目名称:FriendBook,代码行数:9,代码来源:AppContext.java

示例9: onCreate

import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    mContext = getApplicationContext();

    MultiDex.install(getApplicationContext());

    baseComponent = DaggerBaseComponent.builder()
            .baseModule(new BaseModule())
            .build();

    BaseApi.init();

    //AndroidTools initialization
    AndroidTools.init(getApplicationContext(), getLogTag());

    //OkHttpClient initialization
    MyOkHttpClient.init(getApplicationContext());

    //Fresco initialization
    Fresco.initialize(getApplicationContext(),
            ImagePipelineFactory.imagePipelineConfig(getApplicationContext()
                    , MyOkHttpClient.provideOkHttpClient()
                    , getCacheDir().getAbsolutePath()));

    //UMeng initialization
    MobclickAgent.setDebugMode(BuildConfig.IS_TEST);
    MobclickAgent.setCatchUncaughtExceptions(true);
    MobclickAgent.openActivityDurationTrack(false);

    mActivityManager = new ActivityManager();
}
 
开发者ID:Jusenr,项目名称:RX_Demo,代码行数:33,代码来源:TotalApplication.java

示例10: init

import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
public static void init() {
    // 如果没有在AndroidManifest 设置AppKey
    // AnalyticsConfig.setAppkey(UMENG_APPKEY);
    MobclickAgent.setDebugMode(BuildConfig.UMENG_DEBUG);
    MobclickAgent.setSessionContinueMillis(1000l);
    MobclickAgent.setCatchUncaughtExceptions(true);
    // SDK在统计Fragment时,需要关闭Activity自带的页面统计,
    // 然后在每个页面中重新集成页面统计的代码(包括调用了 onResume 和 onPause 的Activity)。
    MobclickAgent.openActivityDurationTrack(false);
}
 
开发者ID:HanyeeWang,项目名称:GeekZone,代码行数:11,代码来源:UMengAnalyticsUtils.java

示例11: onCreate

import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setTheme(R.style.App_Theme_Light);
    onBeforeSetContentLayout();
    if (getLayoutId() != 0) {
        setContentView(getLayoutId());
    }
    mActionBar = getSupportActionBar();
    mInflater = getLayoutInflater();

    if (hasActionBar()) {
        initActionBar(mActionBar);
    }

    // 通过注解绑定控件
    ButterKnife.bind(this);

    init(savedInstanceState);
    initView();
    initData();
    _isVisible = true;

    //umeng analytics
    MobclickAgent.setDebugMode(false);
    MobclickAgent.openActivityDurationTrack(false);
    MobclickAgent.setScenarioType(this, MobclickAgent.EScenarioType.E_UM_NORMAL);
}
 
开发者ID:hsj-xiaokang,项目名称:OSchina_resources_android,代码行数:29,代码来源:BaseActivity.java

示例12: openActivityDurationTrack

import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
public static void openActivityDurationTrack(boolean arg0)
{
	if (!DEBUG)
	{
		MobclickAgent.openActivityDurationTrack(arg0);
	}
}
 
开发者ID:benniaobuguai,项目名称:android-project-gallery,代码行数:8,代码来源:MobclickAgentProxy.java

示例13: onCreate

import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    mContext = getApplicationContext();

    MultiDex.install(getApplicationContext());

    baseComponent = DaggerBaseComponent.builder()
            .baseModule(new BaseModule())
            .build();

    BaseApi.init();

    //AndroidTools initialization
    FormatStrategy formatStrategy = PrettyFormatStrategy.newBuilder()
            .tag(getLogTag())
            .build();
    AndroidTools.init(getApplicationContext(), formatStrategy, Logger.DEBUG);

    //OkHttpClient initialization
    MyOkHttpClient.init(getApplicationContext());

    //Fresco initialization
    Fresco.initialize(getApplicationContext(),
            ImagePipelineFactory.imagePipelineConfig(getApplicationContext()
                    , MyOkHttpClient.provideOkHttpClient()
                    , getCacheDir().getAbsolutePath()));

    //UMeng initialization
    MobclickAgent.setDebugMode(BuildConfig.IS_TEST);
    MobclickAgent.setCatchUncaughtExceptions(true);
    MobclickAgent.openActivityDurationTrack(false);

    mActivityManager = new ActivityManager();
}
 
开发者ID:Jusenr,项目名称:AppFirCloud,代码行数:36,代码来源:TotalApplication.java

示例14: onCreate

import com.umeng.analytics.MobclickAgent; //导入方法依赖的package包/类
@Override
    public void onCreate() {
        super.onCreate();
        //MultiDex initialization
        MultiDex.install(getApplicationContext());
        //多进程只对主进程初始化
        String processName = AppUtils.getProcessName(getApplicationContext(), Process.myPid());
        if (getPackageName().equals(processName)) {
            //API initialise
            BaseApi.init();

//            //LeakCanary initialization
//            if (LeakCanary.isInAnalyzerProcess(this)) {
//                // This process is dedicated to LeakCanary for heap analysis
//                // You should not init your app in this process
//                return;
//            }
//            LeakCanary.install(this);

            //AndroidTools initialise
            AndroidTools.init(getApplicationContext(), getLogTag());

            //DiskFileCacheHelper initialise
            mCacheHelper = DiskFileCacheHelper.get(getApplicationContext(), getLogTag());

            //UMeng initialise
            MobclickAgent.setDebugMode(BuildConfig.IS_TEST);
            MobclickAgent.setCatchUncaughtExceptions(true);
            MobclickAgent.openActivityDurationTrack(false);

            Logger.i(getCurPackageName());

            Fresco.initialize(getApplicationContext(), ImagePipelineFactory.imagePipelineConfig(getApplicationContext()
                    , new OkHttpClient()
                    , getCacheDir().getAbsolutePath()));
        }

        CrashHandler.instance().init(new CrashHandler.OnCrashHandler() {
            @Override
            public void onCrashHandler(String phoneInfo, Throwable e) {
                onCrash(phoneInfo, e);
            }
        });
    }
 
开发者ID:Jusenr,项目名称:androidtools,代码行数:45,代码来源:TotalApplication.java


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