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);
  }
Starts listening shakes to open LynxActivity if a shake is detected and if the ShakeDetector is
enabled.
lynx/src/main/java/com/github/pedrovgs/lynx/LynxShakeDetector.java