@Override
 public void onCreate() {
   super.onCreate();
   SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(this);
   boolean isCatch = pref.getBoolean(getString(R.string.catch_crash_key), false);
   if (isCatch) {
     CustomActivityOnCrash.install(this);
   }
 }
Example #2
0
 @Override
 public void onCreate() {
   super.onCreate();
   // setup service
   createService();
 }
 @Override
 protected void attachBaseContext(Context base) {
   super.attachBaseContext(base);
   MultiDex.install(this);
 }
 @Override
 public void onCreate() {
   super.onCreate();
   AnalyticsAPI.setupAnalyticsAPI(getApplicationContext());
 }
Example #5
0
 public void onCreate() {
   super.onCreate();
   instance = this;
   bus = new Bus(ThreadEnforcer.ANY);
 }