@Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    // Delete notifications (in case Activity was started by one of them)
    NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
    nm.cancel(R.string.preyForAndroid_name);
    startup();

    boolean keepOn = PreyConfig.getPreyConfig(getApplicationContext()).isKeepOn();
    if (keepOn) {
      startService(new Intent(getApplicationContext(), PreyKeepOnService.class));
    } else {
      stopService(new Intent(getApplicationContext(), PreyKeepOnService.class));
    }
  }
 @Override
 protected void onStart() {
   super.onStart();
   startup();
 }
 @Override
 public void onConfigurationChanged(Configuration newConfig) {
   // ignore orientation change
   super.onConfigurationChanged(newConfig);
 }