@Override
 public void stopListening() {
   sensorManager.unregisterListener(this, accelorometerSensor);
   isListening = hasBeenTripped = false;
   sensorChangeMonitor.reset();
   resetAlarmService();
   binder.onDisarmed();
 }
  @Override
  public void onCreate() {
    super.onCreate();

    binder = binderBuilder.build(this);

    sensorManager = (SensorManager) getApplication().getSystemService(SENSOR_SERVICE);
    accelorometerSensor = sensorManager.getDefaultSensor(SensorManager.SENSOR_ACCELEROMETER);

    sensorChangeMonitor.setSensorChangeListener(this);
  }
 @Override
 public void onSensorChanged(SensorEvent event) {
   sensorChangeMonitor.onSensorChanged(event.values);
 }