Example #1
0
 @Override
 public void onCreate() {
   super.onCreate();
   JobManager.create(this).addJobCreator(new SyncJobCreator());
   if (LeakCanary.isInAnalyzerProcess(this)) {
     return;
   }
   LeakCanary.install(this);
 }
 @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);
   // sInstance = this;
 }