當前位置: 首頁>>代碼示例>>Java>>正文


Java MobclickAgent.setCatchUncaughtExceptions方法代碼示例

本文整理匯總了Java中com.umeng.analytics.MobclickAgent.setCatchUncaughtExceptions方法的典型用法代碼示例。如果您正苦於以下問題:Java MobclickAgent.setCatchUncaughtExceptions方法的具體用法?Java MobclickAgent.setCatchUncaughtExceptions怎麽用?Java MobclickAgent.setCatchUncaughtExceptions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.umeng.analytics.MobclickAgent的用法示例。


在下文中一共展示了MobclickAgent.setCatchUncaughtExceptions方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: 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

示例2: 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

示例3: onCreate

import com.umeng.analytics.MobclickAgent; //導入方法依賴的package包/類
@Override
public void onCreate() {
    super.onCreate();
    if (isMainProcess(this)) {
        Stores.install(this);
        Toasts.install(this);
        RebaseRetrofit.setDebug(BuildConfig.DEBUG);
        MobclickAgent.setCatchUncaughtExceptions(true);
        MobclickAgent.setDebugMode(BuildConfig.DEBUG);
        RxJavaPlugins.setErrorHandler(displayErrorConsumer(this));
    }
}
 
開發者ID:drakeet,項目名稱:rebase-android,代碼行數:13,代碼來源:App.java

示例4: 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

示例5: 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

示例6: 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

示例7: 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.setCatchUncaughtExceptions方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。