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


Java CrashWoodpecker类代码示例

本文整理汇总了Java中me.drakeet.library.CrashWoodpecker的典型用法代码示例。如果您正苦于以下问题:Java CrashWoodpecker类的具体用法?Java CrashWoodpecker怎么用?Java CrashWoodpecker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: onCreate

import me.drakeet.library.CrashWoodpecker; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    context = getApplicationContext();
    resource = context.getResources();

    if (hasMemoryLeak()) {
        refWatcher = LeakCanary.install(this);//预定义的 RefWatcher,同时也会启用一个 ActivityRefWatcher
    }
    if (hasCrashLog()) {
        CrashWoodpecker.fly().to(this);//崩溃异常捕获
    }

}
 
开发者ID:qinci,项目名称:MarkdownEditors,代码行数:15,代码来源:BaseApplication.java

示例2: initCrashWoodpecker

import me.drakeet.library.CrashWoodpecker; //导入依赖的package包/类
/**
 * 崩溃提示
 */
private void initCrashWoodpecker() {
    CrashWoodpecker.instance()
            .withKeys("widget", "me.drakeet")
            .setPatchMode(PatchMode.SHOW_LOG_PAGE)
            .setPatchDialogUrlToOpen("https://drakeet.me")
            .setPassToOriginalDefaultHandler(true)
            .flyTo(this);
}
 
开发者ID:xujiaji,项目名称:HaiNaBaiChuan,代码行数:12,代码来源:App.java

示例3: onCreate

import me.drakeet.library.CrashWoodpecker; //导入依赖的package包/类
/**
 * Build object graph on creation so that objects are available
 */
@Override
public void onCreate() {
    super.onCreate();
    Prefs.with(this).useDefault().init();
    boolean enableLeakCanary = Prefs.getBoolean("prefs_debug_enable_leak_canary", true);
    boolean enableCrashWoodpecker = Prefs.getBoolean("prefs_debug_enable_crash_woodpecker", true);
    if(enableLeakCanary)
        LeakCanary.install(this);
    if(enableCrashWoodpecker)
        CrashWoodpecker.fly().to(this);
    boolean isNightMode = Prefs.getBoolean(PreferenceConstant.SHARED_PREFERENCE_IS_NIGHT_MODE, false);

    if(isNightMode) {
        AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_YES);
    } else {
        AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);
    }

    AnalyticsUtils.init(this, getString(R.string.UMENG_APPKEY_VALUE));
    Fabric.with(this, new Crashlytics());
    Timber.plant(new CrashReportingTree());
    UmengUpdateAgent.setAppkey(getString(R.string.UMENG_APPKEY_VALUE));
    UmengUpdateAgent.update(this);

    mAndroidNavigation = new AndroidNavigation();
    appComponent = DaggerAppComponent
            .builder()
            .appModule(new AppModule(this, mAndroidNavigation))
            .build();

    /*Intent chapterContentCacheServiceIntent = new Intent(this, ChapterContentsCacheService.class);
    startService(chapterContentCacheServiceIntent);
    Intent loadLocalTextServiceIntent = new Intent(this, LocalFileImportService.class);
    startService(loadLocalTextServiceIntent);*/
}
 
开发者ID:crysehillmes,项目名称:smoothnovelreader,代码行数:39,代码来源:SmoothReaderApplication.java

示例4: onCreate

import me.drakeet.library.CrashWoodpecker; //导入依赖的package包/类
@Override public void onCreate() {
    super.onCreate();
    CrashWoodpecker.flyTo(this).withKeys("me.drakeet");
    LeakCanary.install(this);
    TimeKey.install(getString(R.string.app_name), "drakeet");
}
 
开发者ID:drakeet,项目名称:TimeMachine,代码行数:7,代码来源:App.java

示例5: onCreate

import me.drakeet.library.CrashWoodpecker; //导入依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    CrashWoodpecker.fly().to(this);
}
 
开发者ID:jjhesk,项目名称:slideSelectionList,代码行数:6,代码来源:base.java


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