@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));
    }
  }