摘要随着智能手机市场的不断扩大,智能手机应用开发己经展现出其强大的市场价值。Android最具创新的特点是其开放性体系架构,这使得Android平台具体无限的吸引力。近来越来越多的人对自身健康问题感到关注,运动健身类软件也逐渐成为了移动互联网业务的一个主要应用方向。本文以运动健身作为研究方向,设计并实现一款基于Android智能手机的计步应用软件。该应用软件通过手机GPS功能来获取用户实时的经纬度信息,借助地球球面两点间的距离公式计算用户的运动距离,从而测得用户所走的步数、速度以及消耗的热量。此外,该软件包括使用SQLite数据库查询用户的历史运动信息以及设置运动者的身高、体重和运动目标等参数的功能。本系统界面友好、操作便捷,具有良好的可扩展性和可维护性;系统经过测试,可以稳定运行,对于日常走路上班或者锻炼的人来说非常合适,方便人们及时掌握自己锻炼的情况,达到高效锻炼的效果。关键词:Android;GPS;计步器;SQLite;运动健身ABSTRACTWiththecontinuousexpansionofthesmartPhonemarket,thesmartPhoneapplicationsdevelopmenthasdemonstrateditsstrongmarketvalue.Android'smostinnovativefeatureisitsopenarchitecture,whichmakestheAndroidplatformunlimitedappeal.Recently,moreandmorepeopleareconcernedabouttheirownhealthproblems,sportsandfitnessclasssoftwareisbecomingamajorapplicationdirectionofthemobileInternetbusiness.Therefore,thecontextmakeuseofthesportsandfitnessasitsresearchdirectiontodesignandimplementthepedometerapplicationsoftwarewhichbasedonAndroid-basedsmartphone.ThecorefunctionalityisthatthroughtheGPSfunctionofmobilephones,itcangetthelatitudeandlongitudeinformationinrealtimeabouttheuser,usethedistancebetweentwopointsoftheEarth'ssphericalformulatocalculatetheuser'smovementdistance,whichusedtomeasurethenumberofstepstogo,speedandcaloriesburned.Besides,thissoftware’sfunctionincludsthatusingtheSQLitedatabasetoquerythehistoryinformationaboutuserandsettheheight,weightandtargetofstepsportsabouttheuser.Thesystem’sinterfaceisquitefriendlyandeasytohandlethesystem,.ithasgoodscalabilityandmaintainability;thesystemhasbeentestedandoperatedverywell,thesoftwareisverysuitableforthepeoplewhowalkstoworkdailyorlikesexercisingthemselves,itisconvenientforpeopletoknowtheirexerciseinformationatanytimeandinanyplace,sothatwecanachieveourpurposetohavaahighefficiencyexercise.Keywords:Android;GPS;pedometer;SQLite;fitness武汉纺织大学2013届毕业设计论文1目录1绪论................................................................................................31.1研究背景.............................................................................................31.2研究目的和意义................................................................................31.3研究内容.............................................................................................41.4本文结构.............................................................................................42相关技术综述................................................................................52.1Android...............................................................................................52.1.1Android简介.................................................................................52.1.2Android特性.................................................................................62.1.3Android基本框架........................................................................62.1.4Android系统的四大组件.............................................................82.2开发环境介绍....................................................................................92.2.1Eclipse简介.................................................................................92.2.2ADT.................................................................................................102.2.3AndroidSDK................................................................................102.2.4SQLite数据库.............................................................................102.3GPS相关理论技术知识...................................................................102.3.1GPS定位原理...............................................................................102.3.2Android中GPS类简介...............................................................113需求分析......................................................................................123.1功能需求...........................................................................................12武汉纺织大学2013届毕业设计论文23.2数据的需求分析..............................................................................133.3系统运行环境..................................................................................144系统设计......................................................................................144.1功能模块设计..................................................................................144.1.1计步功能......................................................................................144.1.2查询运动信息功能......................................................................164.1.3设置参数功能..............................................................................184.1.4退出系统功能..............................................................................194.2数据设计...........................................................................................205系统实现......................................................................................215.1Android环境搭建...........................................................................215.2软件结构设计..................................................................................235.3计步功能..............................................