Chapter 6. The Step Counter and Detector Sensors – The Pedometer App

This chapter will focus on learning the use of the step detector and step counter sensors. We will analyze and process the accelerometer data to develop the algorithm for detecting the types of steps (walking, jogging, and fast running). As a learning exercise, we will develop a pedometer application and will closely look at the infrastructure (service, threads, and database) required to process the sensor data in the background for a longer duration of time. We will also discuss how to combine the step detector sensor with the accelerometer sensor to achieve battery optimization.

You will learn the following topics in this chapter:

  • Understanding the requirements for the pedometer ...

Get Android Sensor Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.