99

GitHub - jiahongfei/TodayStepCounter: Android计步模块(类似微信运动,支付宝计步...

 6 years ago
source link: https://github.com/jiahongfei/TodayStepCounter
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

README.md

Android计步模块(类似微信运动,支付宝计步,今日步数)

Android计步模块优化(今日步数)

Android计步模块优化(今日步数)V2.0.0

  1. 返回当天运动步数
  2. 内部自动切换计步算法,适配所有手机
  3. 通过AIDL对外暴露接口
  4. 采用单独进程计步
  1. 适配Android8.0系统
  2. TYPE_ACCELEROMETER和TYPE_STEP_COUNTER传感器自动切换
  3. 只提供当天的步数数据
  4. 解决一些bug
  5. 对关键位置增加日志信息(日志系统底层需要自己实现)

开源算法这个是源码,如果有大神对他进行优化,非常欢迎和我进行讨论。

  1. 用户后台保活(对于加速度传感器必须后台保活),每个手机都不一样无法提供通用的标准操作
  2. 早上打开一次,计步器会开始计步
  3. 重启手机需要打开app,否则步数丢失
  4. 如果遇到当天步数不准,或者不记步,需要重启手机,android计步协处理器会出现bug
  5. 会有部分清零和极大值出现,这也是由于android计步协处理器出现问题导致的
  6. 卸载app步数会清空,归零。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK