android实训报告 学号: 09090103 姓名:冯超洁
南 京 师 范 大 学 泰 州 学 院
题 目:学
姓
班
信 息 工 程 学 院
Android实 训 报 告
Android GPS系统
号: 09090103 名: 冯超洁 级: 信工091
2012 年 6月
1
Android GPS系统
摘 要
随着智能手机一步步走进普通人的生活,它将成为人们获取信息的主要设备。因此,手机的应用服务将会有很大的发展空间,手机地图服务就是其中的一项。目前的地图服务主要以使用单机或者网页方式实现,这些方式不适合在户外旅游等场合下进行,给用户造成了很多的不便。Android平台提供给普通开发者非常灵活的地图展示与控制功能,这将使地图 服务的设计与实现有了更好的平台。另外,Android平台基本上是免费的,所以能够有效降低软件的成本,最终让每个用户能够自由地获取信息,也为手机地图服 务的普及做出贡献。
本文对目前应用现状进行了分析与比较,进而研究分析了Android平台的系统架构和组件模型,在此基础上,基于Android平台设计和开发了一个手机Web地图服务,该系统包括自我定位、地图模式、路线查询、地点查找四大模块。自我定位模块的功能就是把手机用户自己所在地方的地图和经纬度在界面中显示出来。行走踪迹模块的功能就是把用户经过的地方以路线图的形式给画出来。地点查找模块的功能就是查询一个地方,并把它在地图中标注出来。
本系统界面友好、操作便捷,具有良好的可扩展性和可维护性;系统经过测试,可以稳定运行,能够满足手机用户基本的地图服务需求。
关键词:Android;Activity;地图服务;Intent:布局
2
android实训报告 学号: 09090103 姓名:冯超洁
Abstract
With the mobile phone enters into the lives of ordinary people step by step,it will become the main device to obtain information.Therefore,the application services of mobile phone will have great development space,map service is one of them.At present,the map service mainly uses the stand—alone or website way to realize,these methods are not suitable for outdoor tourism,and other occasions,and give the user a lot of
inconvenience.Android platform provides to the general development a function of very flexible display and control the map,which will make the design and implementation of map service have a better platform.In addition,the Android platform is basically free,so can reduce the cost of software effectively, and ultimately lets each user be able to gain the information freely, else makes a contribution to the popularization of mobile map service.
In this paper, there is a analysis and comparison about the status of the current applied
platforms.Further analysis of the Android platform,system architecture and component model,and then to resolve the important API in Android and application of composition.On this basis,design and develop a mobile map service based on the Android platform,this system includes the self-localization,the map mode,the route inquiry, the place search.The self-localization module’s function is to display the latitude,longitude and place where mobile users are in the interface.The walking trail module’s function is to picture the place which the mobile user passes through by the form of road map.The place search module’s function is to inquire a place,and label it in the map.
This system user-friendly, easy to operate,has good extendibility and maintainability;the system after the test,can be stable operation,be able to meet the mobile phone users basic map service needs.
Key Words:Android;Activity;Map Service;Intent;Layout
3