Git Product home page Git Product logo

todaystepcounter's Introduction

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

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

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

图片源于网络.png

功能

  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步数会清空,归零。

todaystepcounter's People

Contributors

jiahongfei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.