1By implementing SensorEventListener listener within a class and overriding the two methods onSensorChanged and onAccuracyChanged you can start tracking steps. public class StepActivity extends Activity implements SensorEventListener{ SensorManager sensorManager = (SensorManager) getSystemService(Context.