首页 移动开发 Android     /    Android项目源码利用加速度传感器实现计步

Android项目源码利用加速度传感器实现计步

上传者: qq_35066663 | 上传时间:2018/4/25 2:06:04 | 文件大小:3.34MB | 文件类型:zip
Android项目源码利用加速度传感器实现计步
主要功能记录行走的步数,行走的时间根据录入的体重,步长可以计算出每天行走的历程,消耗的热量对每天行走的历程进行记录,并给出星级评价软件原理判断人能否处于行走中,主要从以下几个方面判断:人如果走起来了,一般会连续多走几步。
因此,如果没有连续4-5个波动,那么就极大可能是干扰。
人走动的波动,比坐车产生的波动要大,因此可以看波峰波谷的高度,只检测高于某个高度的波峰波谷。
人的反射神经决定了人快速动的极限,怎么都不可能两步之间小于0.2秒,因此间隔小于0.2秒的波峰波谷直接跳过通过重力加速计感应,重力变化的方向,大小。
与正常走路或跑步时的重力变化比对,达到一定相似度时认为是在走路或跑步。
实现起来很简单,只要手机有重力感应器就能实现。
软件记步数的精准度跟用户的补偿以及体重有关,也跟用户设置的传感器的灵敏度有关系,在设置页面可以对相应的参数进行调节。
一旦调节结束,可以重新开始。
手机QQ早就加入了计算步幅功能,还能和好友PK“炫步”。
本项目可以作为一个独立的模块放到合适的项目里面。

文件下载

资源详情

[{"title":"(89个子文件3.34MB)Android项目源码利用加速度传感器实现计步","children":[{"title":"appcodes.cn源码说明.txt <span style='color:#111;'>2.13KB</span>","children":null,"spread":false},{"title":"QQ截图20160309025406.jpg <span style='color:#111;'>25.40KB</span>","children":null,"spread":false},{"title":"点这里查看更多优质APP源码~.url <span style='color:#111;'>122B</span>","children":null,"spread":false},{"title":"QQ截图20160309025344.jpg <span style='color:#111;'>45.55KB</span>","children":null,"spread":false},{"title":"appcodes.cn","children":[{"title":"bin","children":[{"title":"res","children":null,"spread":false},{"title":"jarlist.cache <span style='color:#111;'>120B</span>","children":null,"spread":false},{"title":"classes","children":[{"title":"com","children":[{"title":"cn","children":[{"title":"stepcounter","children":[{"title":"StartActivity$2.class <span style='color:#111;'>1.28KB</span>","children":null,"spread":false},{"title":"BuildConfig.class <span style='color:#111;'>345B</span>","children":null,"spread":false},{"title":"StepCounterActivity$2.class <span style='color:#111;'>1.60KB</span>","children":null,"spread":false},{"title":"R$layout.class <span style='color:#111;'>485B</span>","children":null,"spread":false},{"title":"SettingsActivity$1.class <span style='color:#111;'>1.56KB</span>","children":null,"spread":false},{"title":"R$id.class <span style='color:#111;'>1.69KB</span>","children":null,"spread":false},{"title":"R$drawable.class <span style='color:#111;'>885B</span>","children":null,"spread":false},{"title":"StepDetector.class <span style='color:#111;'>3.21KB</span>","children":null,"spread":false},{"title":"SettingsActivity.class <span style='color:#111;'>4.84KB</span>","children":null,"spread":false},{"title":"R$dimen.class <span style='color:#111;'>461B</span>","children":null,"spread":false},{"title":"SettingsActivity$2.class <span style='color:#111;'>1.67KB</span>","children":null,"spread":false},{"title":"StepCounterService.class <span style='color:#111;'>1.96KB</span>","children":null,"spread":false},{"title":"R$attr.class <span style='color:#111;'>340B</span>","children":null,"spread":false},{"title":"R$menu.class <span style='color:#111;'>463B</span>","children":null,"spread":false},{"title":"R.class <span style='color:#111;'>767B</span>","children":null,"spread":false},{"title":"StepCounterActivity$1.class <span style='color:#111;'>3.11KB</span>","children":null,"spread":false},{"title":"SplashActivity$1.class <span style='color:#111;'>1.18KB</span>","children":null,"spread":false},{"title":"StartActivity.class <span style='color:#111;'>1.13KB</span>","children":null,"spread":false},{"title":"SplashActivity.class <span style='color:#111;'>1.30KB</span>","children":null,"spread":false},{"title":"R$string.class <span style='color:#111;'>1.86KB</span>","children":null,"spread":false},{"title":"SettingsActivity$3.class <span style='color:#111;'>1.67KB</span>","children":null,"spread":false},{"title":"StepCounterActivity.class <span style='color:#111;'>12.03KB</span>","children":null,"spread":false},{"title":"R$color.class <span style='color:#111;'>469B</span>","children":null,"spread":false},{"title":"StartActivity$1.class <span style='color:#111;'>1.29KB</span>","children":null,"spread":false},{"title":"R$anim.class <span style='color:#111;'>463B</span>","children":null,"spread":false},{"title":"R$style.class <span style='color:#111;'>471B</span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'>1.43KB</span>","children":null,"spread":false}],"spread":true},{"title":"res","children":[{"title":"drawable-ldpi","children":null,"spread":false},{"title":"menu","children":[{"title":"activity_main.xml <span style='color:#111;'>212B</span>","children":null,"spread":false},{"title":"start.xml <span style='color:#111;'>254B</span>","children":null,"spread":false},{"title":"activity_step.xml <span style='color:#111;'>381B</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-hdpi","children":[{"title":"loading.png <span style='color:#111;'>49.65KB</span>","children":null,"spread":false},{"title":"background.png <span style='color:#111;'>386.62KB</span>","children":null,"spread":false},{"title":"gif.gif <span style='color:#111;'>25.38KB</span>","children":null,"spread":false},{"title":"star_enable.png <span style='color:#111;'>3.47KB</span>","children":null,"spread":false},{"title":"start_disable.png <span style='color:#111;'>4.46KB</span>","children":null,"spread":false},{"title":"index.png <span style='color:#111;'>405.06KB</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-xhdpi","children":null,"spread":false},{"title":"drawable","children":[{"title":"start_green.png <span style='color:#111;'>3.63KB</span>","children":null,"spread":false},{"title":"btn_bg.xml <span style='color:#111;'>398B</span>","children":null,"spread":false},{"title":"run_gif.gif <span style='color:#111;'>39.65KB</span>","children":null,"spread":false},{"title":"start_background.png <span style='color:#111;'>65.52KB</span>","children":null,"spread":false},{"title":"ic_launcher.png <span style='color:#111;'>17.25KB</span>","children":null,"spread":false},{"title":"gif.gif <span style='color:#111;'>25.38KB</span>","children":null,"spread":false},{"title":"walk.png <span style='color:#111;'>5.12KB</span>","children":null,"spread":false},{"title":"walk_gif.gif <span style='color:#111;'>11.69KB</span>","children":null,"spread":false},{"title":"run.png <span style='color:#111;'>4.62KB</span>","children":null,"spread":false},{"title":"start_red.png <span style='color:#111;'>3.17KB</span>","children":null,"spread":false},{"title":"shape.xml <span style='color:#111;'>197B</span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'>204B</span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'>2.38KB</span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'>1012B</span>","children":null,"spread":false},{"title":"ids.xml <span style='color:#111;'>1.31KB</span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'>213B</span>","children":null,"spread":false}],"spread":true},{"title":"values-sw720dp-land","children":[{"title":"dimens.xml <span style='color:#111;'>269B</span>","children":null,"spread":false}],"spread":true},{"title":"drawable-mdpi","children":null,"spread":false},{"title":"values-sw600dp","children":[{"title":"dimens.xml <span style='color:#111;'>196B</span>","children":null,"spread":false}],"spread":false},{"title":"anim","children":[{"title":"fade_in.xml <span style='color:#111;'>249B</span>","children":null,"spread":false},{"title":"fade_out.xml <span style='color:#111;'>249B</span>","children":null,"spread":false},{"title":"animation_splash.xml <span style='color:#111;'>448B</span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"settings.xml <span style='color:#111;'>8.17KB</span>","children":null,"spread":false},{"title":"start.xml <span style='color:#111;'>992B</span>","children":null,"spread":false},{"title":"main.xml <span style='color:#111;'>13.52KB</span>","children":null,"spread":false},{"title":"splash.xml <span style='color:#111;'>306B</span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"proguard-project.txt <span style='color:#111;'>781B</span>","children":null,"spread":false},{"title":"ic_launcher-web.png <span style='color:#111;'>37.67KB</span>","children":null,"spread":false},{"title":"assets","children":null,"spread":false},{"title":"gen","children":[{"title":"com","children":[{"title":"cn","children":[{"title":"stepcounter","children":[{"title":"BuildConfig.java <span style='color:#111;'>160B</span>","children":null,"spread":false},{"title":"R.java <span style='color:#111;'>8.11KB</span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"png","children":[{"title":"1.png <span style='color:#111;'>387.04KB</span>","children":null,"spread":false},{"title":"2.png <span style='color:#111;'>429.91KB</span>","children":null,"spread":false},{"title":"4.png <span style='color:#111;'>586.23KB</span>","children":null,"spread":false},{"title":"3.png <span style='color:#111;'>472.72KB</span>","children":null,"spread":false}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'>177B</span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"com","children":[{"title":"cn","children":[{"title":"stepcounter","children":[{"title":"StepDetector.java <span style='color:#111;'>3.86KB</span>","children":null,"spread":false},{"title":"StepCounterActivity.java <span style='color:#111;'>14.92KB</span>","children":null,"spread":false},{"title":"SettingsActivity.java <span style='color:#111;'>5.56KB</span>","children":null,"spread":false},{"title":"SplashActivity.java <span style='color:#111;'>1.70KB</span>","children":null,"spread":false},{"title":"StepCounterService.java <span style='color:#111;'>2.26KB</span>","children":null,"spread":false},{"title":"StartActivity.java <span style='color:#111;'>1.77KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true},{"title":".project <span style='color:#111;'>862B</span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'>475B</span>","children":null,"spread":false},{"title":"project.properties <span style='color:#111;'>563B</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>1.44KB</span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'>1.43KB</span>","children":null,"spread":false},{"title":"libs","children":[{"title":"android-support-v4.jar <span style='color:#111;'>376.65KB</span>","children":null,"spread":false},{"title":"GifView.jar <span style='color:#111;'>14.43KB</span>","children":null,"spread":false}],"spread":false},{"title":"lint.xml <span style='color:#111;'>464B</span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • BruceNeeal:
    一般般啊,没达到想要的效果2018-12-17
  • luojia20032004:
    参考一下代码2018-06-08
  • weixin_38108677:
    想要参考一下代码2018-03-22
  • 泡泡小子:
    没什么参考性2017-11-09
  • tuchao1:
    目的就是参考2016-11-06

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明