1
2page.tags="BatchStepSensor"
3sample.group=Sensors
4@jd:body
5
6<p>
7
8            <p>This sample demonstrates the use of the two step sensors (step detector and counter) and
9            sensor batching.</p>
10            <p>It shows how to register a SensorEventListener with and without
11            batching and shows how these events are received.</p>
12            <p>The Step Detector sensor fires an
13            event when a step is detected, while the step counter returns the total number of
14            steps since a listener was first registered for this sensor.
15            Both sensors only count steps while a listener is registered. This sample only covers the
16            basic case, where a listener is only registered while the app is running. Likewise,
17            batched sensors can be used in the background (when the CPU is suspended), which
18            requires manually flushing the sensor event queue before it overflows, which is not
19            covered in this sample.</p>
20
21        </p>
22