Android realizes the step sensor function

In this paper, the original text: the initial exploration of Android's step counting function, the step counting project is simplified, and the process service and timing, daemon, database saving and so on are removed to facilitate the expansion of functions.

Source code of this article: https://github.com/lifegh/StepOrient

For Android version 4.4 and above, some mobile phones have a step sensor that can be used directly, while some mobile phones do not, but have an acceleration sensor, which can also realize the step counting function (it is necessary to calculate the peak and trough of the acceleration wave to judge a person's step)!

1、 Call

2、 Step counting is realized directly by using step counting sensor

3、 Step measurement using accelerometer

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>