本文整理汇总了Java中com.squareup.leakcanary.LeakCanary.install方法的典型用法代码示例。如果您正苦于以下问题:Java LeakCanary.install方法的具体用法?Java LeakCanary.install怎么用?Java LeakCanary.install使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.squareup.leakcanary.LeakCanary
的用法示例。
在下文中一共展示了LeakCanary.install方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onCreate
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
Fresco.initialize(this);//Init Fresco
applicationComponent = DaggerApplicationComponent.builder()
.applicationModule(new ApplicationModule(this))
.contextModule(new ContextModule(this))
.databaseModule(new DatabaseModule())
.networkModule(new NetworkModule())
.build();
applicationComponent.inject(this);
CalligraphyConfig.initDefault(calligraphyConfig);
Timber.plant(new Timber.DebugTree());
LeakCanary.install(this);
}
示例2: onCreate
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
initializeDependencies();
if (BuildConfig.DEBUG) {
Timber.plant(new Timber.DebugTree());
Stetho.initializeWithDefaults(this);
}
if (LeakCanary.isInAnalyzerProcess(this)) {
return;
}
LeakCanary.install(this);
}
示例3: onCreate
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate()
{
super.onCreate();
if (LeakCanary.isInAnalyzerProcess(this))
{
// This process is dedicated to LeakCanary for heap analysis.
// You should not init your app in this process.
return;
}
setupGraph();
Iconify.with(new FontAwesomeModule());
if (!BuildConfig.DEBUG)
Bugsnag.init(this);
else
LeakCanary.install(this);
// Empty string while RxSocialConnect's disk cache is not working
RxSocialConnect.register(this, "")
.using(new GsonSpeaker());
NavigationDrawerBuilder.initialiseMaterialDrawerImageLoader();
}
示例4: onCreate
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
if (LeakCanary.isInAnalyzerProcess(this)) {
mRefWatcher = RefWatcher.DISABLED;
} else {
mRefWatcher = LeakCanary.install(this);
}
if (isInMainProcess()) {
instance = this;
Thread.setDefaultUncaughtExceptionHandler(new AppCrashHandler(this));
initModule();
}
}
示例5: onCreate
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
if (LeakCanary.isInAnalyzerProcess(this)) {
// This process is dedicated to LeakCanary for heap analysis.
// You should not init your app in this process.
return;
}
if (BuildConfig.DEBUG) {
Timber.plant(new Timber.DebugTree());
}
LeakCanary.install(this);
initializeLogger();
Mapbox.getInstance(this, getString(R.string.mapbox_access_token));
Timber.plant(new Timber.DebugTree());
// TODO remove when 5.2.1 is released
FileSource.getInstance(this).activate();
}
示例6: onCreate
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
context = getApplicationContext();
if (LeakCanary.isInAnalyzerProcess(this)) {
return;
}
LeakCanary.install(this);
}
示例7: onCreate
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
if (LeakCanary.isInAnalyzerProcess(this)) {
return;
}
LeakCanary.install(this);
}
示例8: onCreate
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
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);
}
示例9: onCreate
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
context = getApplicationContext();
if (LeakCanary.isInAnalyzerProcess(this)) {
return;
}
LeakCanary.install(this);
QDUpgradeManager.getInstance(this).check();
}
示例10: onCreate
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
CustomActivityOnCrash.install(this);
if (LeakCanary.isInAnalyzerProcess(this)) {
return;
}
LeakCanary.install(this);
}
示例11: onCreate
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override public void onCreate() {
super.onCreate();
if (LeakCanary.isInAnalyzerProcess(this)) {
// This process is dedicated to LeakCanary for heap analysis.
// You should not init your app in this process.
return;
}
mailComponent = DaggerMailAppComponent.create();
refWatcher = LeakCanary.install(this);
}
示例12: initLeakCanary
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
private void initLeakCanary(){
if (LeakCanary.isInAnalyzerProcess(this)) {
}else{
LeakCanary.install(this);
}
}
示例13: onCreate
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override public void onCreate() {
super.onCreate();
if (LeakCanary.isInAnalyzerProcess(this)) {
// This process is dedicated to LeakCanary for heap analysis.
// You should not init your app in this process.
return;
}
refWatcher = LeakCanary.install(this);
Timber.d("Starting Application");
}
示例14: onCreate
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
super.onCreate();
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);
}
示例15: onCreate
import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override public void onCreate() {
super.onCreate();
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);
}