eless devices to create a new development platform that lets mobile communications equipment to play the greatest potential. Android phone as a mobile terminal provides a good solution for the future development of mobile communication.
In this paper, the Android system characteristics, system architecture and application build, developers have done a more detailed analysis. Combination Baidu Maps, GPS positioning technology, positioning and navigation android conducted in-depth research and design of bus routes Android-based query application. The system uses the Java language and Eclipse development tools to write. At the same time gives a detailed system design process, part of the interface diagram and operation flow chart of the main function of the development process, the paper also encountered problems and solutions are discussed.
The system functions of the main transfer query line query and site search function, not only can show the results of the query, but also to the electronic map display based on user-selected line, to make the system more intuitive.
Key words: android, Bus routes queries, the Baidu Maps
目 录
第1章 绪论 1
1.1课题的研究意义 1
1.2移动终端的发展现状 1
1.3公交查询现状 2
1.4本次课题研究内容 3
第2章 需求分析 4
2.1 服务器端需求分析 4
2.1 客户端需求分析 5
第3章 技术背景介绍 6
3.1 GPS 6
3.1.1全球定位系统简介 6
3.1.2 GPS系统的组 7
3.1.3 GPS的功能 8
3.1.4 应用前景 9
3.2 Android平台 9
3.2.1 Android特征 9
3.2.2 Android架构 10
3.2.3 Android应用的构成和工作机制 12
3.3本章小结 14
第4章 平台的搭建 16
4.1 Android 开发环境的搭建 16
4.1.1 JDK的安装 16
4.1.2 Eclipse的安装 17
4.1.3 Android SDK安装 17
4.1.4 ADT安装 19
4.1.5 创建AVD 20
4.2 Eclipse简介 20
第5章 程序设计 21
5.1系统体系结构 21
5.2 Baidu Maps API 申请及使用 21
5.2.1申请Baidu Map Key 21
5.2.2获取坐标和地址 22
5.2.3地图自动定位 23
5.2.4百度地图地址解析服务Geocoder 23
第6章 系统设计与实现 25
6.1 欢迎界面的实现 25
6.2 主要功能的实现 26
6.3 截图及运行说明 1
6.4 软件可以改进之处 9
第7章 系统测试 10
7.1手动测试方案 10
7.2工具测试方案 10
7.2.1单元测试 10
7.2.2 系统测试 11
7.3测试用例 11
7.4辅助测试工具 11
结论 13
参考文献 14
致谢 16
第1章 绪论
1.1课题的研究意义
出行是人们日常生活中不可或缺的一部分,而公交车是大多数人出行首选的交通工具,如何才能随时随地、方便快捷的获取公交线路的信息,合理安排自己的出行线路,是很多人非常关心的问题。
建设智能公交系统,利用当代高新技术:电子、信息、通信、计算机、GPS、GIS等,将交通系统中的人、交通设施和交通工具有机的联系起来,建立智能公交系统,如公交优先系统、公交查询系统、智能化行车系统等,为乘客提供实时的更多更全面的出行信息,更好的为乘客服务。
在智能公交系统中,公交查询系统的服务是目前最贴近乘客日常生活的,也是最能让乘客亲身体会公交服务水平高低的方面。因此,如何给乘客提供一个良好的平台,让乘客选择或是推荐合适的乘车方案出行,以节约乘车时间,缩短到达目的的乘坐距离,减少乘坐的票款成本,才是提高公交服务水平最值得关注的问题之一。
越来越多的人倾向通过上网获得和共享信息,随着网络应用的普及而不断的发展,Internet的应用成了世人关注的焦点。公交路线查询系统既提供全面的公交信息,更具有实用性、便利性、多样性。因此我们提出开发并设计了一个基于Android平台的公交路线查询系统。用户可以在任意一款Android手机中安装此工具。通过此查询工具可以查看线路,查找任意两地的乘车方案等,更方便用户出行,节约时间,减缓交通压力。
1.2移动终端的发展现状
当今在全球信息与通信领域中,无线移动通信的发展之