예제 #1
0
 @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);
   }
 }
예제 #2
0
 @Override
 public void onCreate() {
   super.onCreate();
   // setup service
   createService();
 }
예제 #3
0
 @Override
 protected void attachBaseContext(Context base) {
   super.attachBaseContext(base);
   MultiDex.install(this);
 }
예제 #4
0
 @Override
 public void onCreate() {
   super.onCreate();
   AnalyticsAPI.setupAnalyticsAPI(getApplicationContext());
 }
예제 #5
0
 public void onCreate() {
   super.onCreate();
   instance = this;
   bus = new Bus(ThreadEnforcer.ANY);
 }