Accelerometer listener with custom rate

To minimize the battery usage, I wanted to register a listener with a very slow rate of events, but that’s not really possible. The lowest possible value is defined by SensorManager.SENSOR_DELAY_UI and the system will ignore everything below that. Anyway, even with that in mind, choosing one of available rates (DELAY_NORMALDELAY_UIDELAY_GAMEDELAY_FASTEST) will be still just a hint for the system – the actual events may be received faster or slower (usually faster).

Not a big deal.

Leave a Reply

Your email address will not be published. Required fields are marked *