code: public void init(final LynxConfig lynxConfig) {
      ShakeDetector shakeDetector = new ShakeDetector(new ShakeDetector.Listener() {
        @Override public void hearShake() {
          if (isEnabled) {
            openLynxActivity(lynxConfig);
          }
        }
      });
      SensorManager sensorManager = (SensorManager) context.getSystemService(Context.SENSOR_SERVICE);
      shakeDetector.start(sensorManager);
    }
docs: Starts listening shakes to open LynxActivity if a shake is detected and if the ShakeDetector is
  enabled.