In this paper, we will consider the process of creating an application for the Android OS "Pedometer". We will discuss the theory of the application, the choice of the algorithm for calculating steps and also implement the program based on the accelerometer sensor, which is built into all modern smartphones. In the process of implementing the existing methods, some problems were discovered, therefore a modified method of counting steps was invented. After the practical implementation and testing of the method, a number of advantages were found: the data update rate was increased, the energy consumption was reduced, and the system load was reduced. As a result, we got a stable application running in the background and almost non-consumable phone battery.