public void remove ( SensorListener sensorListener ) { listeners . remove ( sensorListener ) ; if ( listeners . isEmpty ( ) && isEnabled ( ) ) { setEnabled ( false ) ; } }
Removes a listener and if there are not more listener the sensor is disabled in order to save resources