Esempio n. 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);
   }
 }
Esempio n. 2
0
 @Override
 public void onCreate() {
   super.onCreate();
   // setup service
   createService();
 }
Esempio n. 3
0
 @Override
 public void onCreate() {
   super.onCreate();
   AnalyticsAPI.setupAnalyticsAPI(getApplicationContext());
 }
Esempio n. 4
0
 public void onCreate() {
   super.onCreate();
   instance = this;
   bus = new Bus(ThreadEnforcer.ANY);
 }