基于Android的手机天气预报系统

基于Android的手机天气预报系统
基于Android的手机天气预报系统

基于Android的手机天气预报系统

合肥学院

2013届毕业论文(设计)

论文(设计)题目基于Android的手机天气预

报系统

院系名称计算机科学与技术系

专业(班级)计算机科学与技术

2009级本科3班

姓名(学号)丁同飞(0904013004)

指导教师屠菁

系负责人袁暋

完成时间2013-06-02

基于Android的手机天气预报系统

中文摘要

天气预报为人们了解天气状况和出行安排带来了方便,但是,大多数天气预报软件都是基于PC端,查询起来并不是很便捷。而随着智能手机的普及和3G技术的发展,手机端实现天气查询成为了可能,因此,实现手机端的天气预报系统成为了人们迫切需要且切实可行的需求。

本设计使用Android设计技术开发了一种运用在Android系统上的手机天气预报软件系统,本系统通过选择城市来获得天气,风向,温度等信息。基于手机的天气预报系统软件可以使用户对于各地的天气情况的实时掌握,极大的方便了用户的出行和行程安排,避免了不必要的麻烦,具有很强的实用性。

本论文首先进行了项目的背景介绍,开发的目的及意义,接着进行系统分析(包括需求分析、研究目标和内容),接着分析了Android系统的框架,然后介绍了本系统的用到的技术以及平台的搭建,最后论述了本系统的详细设计(包括功能模块设计、数据库设计等),接着进行了项目的测试用例分析,最后给出了结论以及展望。

关键词:天气预报;Android;linux内核

Based on the Android of mobile phone weather forecast system

ABSTRACT

Weather Forecast for people to understand weather conditions and travel arrangements to bring the convenience, however, most weather forecasts are based on the PC side software, check it is not very convenient. With the popularity of smart phones and 3G technology, mobile client queries become possible to achieve weather, therefore, realize the phone side of weather forecasting system has become an urgent need for people with practical needs.

This design uses design techniques developed an Android application in the Android system mobile weather software system, the system by selecting the city to get weather, wind direction, temperature and other information. Phone-based weather forecasting system software allows users around the weather conditions for real-time control, which greatly facilitates the user's travel and travel arrangements, to avoid unnecessary trouble, and highly practical.

This paper first introduces the background for the project, the development of purpose and meaning, followed by systems analysis (including needs analysis, research objectives and content), and then analyzes the framework of the Android system, then introduces the technology used in this system as well as platform structures, and finally discusses the detailed design of the system (including functional module design, database design, etc.), followed by analysis of the project's test cases, and finally gives the conclusion and outlook.

Keyword: android;the Linux kernel;the weather forecast

I

Android 天气预报简介

Android 谷歌天气预报 该项目是东方标准广州java培训中心为java技术开发学习人员和android技术开发班的学员共同开发研制的一款生活助手软件《谷歌天气预报》。项目来自于日常生活中天气预报新闻。由于人们日益紧凑的生活节奏,对于天气的关注不如以前那么重要,所以为了节省人们的业余时间,直接将天气预报功能搬入了手机软件功能当中,方便人们阅读浏览当地天气情况,并适当做出生活调整。 该项目技术要点为:推送功能+后台服务设计Service+联网功能HTTP+xml解析器XmlPullParser等技术。 一.项目介绍 《谷歌天气预报》是一款简单的天气预报定制软件。界面简洁易懂,方便用户使用。可以查询几大城市的天气预报情况,主要功能有天气预告、城市温度、湿度、未来几天天气预测等。该软件使用起来非常方便。只要输入所查看的城市,软件自动提供当地的天气情况,以供查询。 二.For personal use only in study and research; not for commercial use 三. 四.功能说明 1、进入软件页面

2、功能说明 1)、【天气】功能:显示当前天气情况。资料来自于互联网真实天气预报。 2)、【城市】功能:显示当前所在城市。 3)、【温度】功能:显示选择城市天气温度变化。资料来自互联网真实天气温度预告。 4)、【湿度】功能:显示当地城市湿度 5)、【天气预测】功能:预测未来几天的天气状况。可以预测未来三天以内的天气资料。 6)、【更新日期】功能: 显示当前天气日期。

五.程序设计技术说明 本程序主要使用Service服务。Android开发中,当需要创建在后台运行的程序的时候,就要使用到Service。Service 可以分为有无限生命和有限生命两种。特别需要注意的是Service跟Activities是不同的(简单来说可以理解为后台与前台的区别),例如,如果需要使用Service的话,需要调用startService(),从而利用 startService()去调用Service中的OnCreate()和onStart()方法来启动一个后台的Service。 在本程序中除了使用Seivice服务外,还用到了网络xml解析器XmlPullParser。同时还使用了监听器OnClickListener 来进行监听动作。 程序部分主要代码1: // 更新UI线程 handler = new Handler(); thread = new Thread() { @Override public void run() { // 未完成ui更改 if (!done) {

基于Android的手机天气预报系统

基于Android的手机天气预报系统

合肥学院 2013届毕业论文(设计) 论文(设计)题目基于Android的手机天气预 报系统 院系名称计算机科学与技术系 专业(班级)计算机科学与技术 2009级本科3班 姓名(学号)丁同飞(0904013004) 指导教师屠菁 系负责人袁暋 完成时间2013-06-02

基于Android的手机天气预报系统 中文摘要 天气预报为人们了解天气状况和出行安排带来了方便,但是,大多数天气预报软件都是基于PC端,查询起来并不是很便捷。而随着智能手机的普及和3G技术的发展,手机端实现天气查询成为了可能,因此,实现手机端的天气预报系统成为了人们迫切需要且切实可行的需求。 本设计使用Android设计技术开发了一种运用在Android系统上的手机天气预报软件系统,本系统通过选择城市来获得天气,风向,温度等信息。基于手机的天气预报系统软件可以使用户对于各地的天气情况的实时掌握,极大的方便了用户的出行和行程安排,避免了不必要的麻烦,具有很强的实用性。 本论文首先进行了项目的背景介绍,开发的目的及意义,接着进行系统分析(包括需求分析、研究目标和内容),接着分析了Android系统的框架,然后介绍了本系统的用到的技术以及平台的搭建,最后论述了本系统的详细设计(包括功能模块设计、数据库设计等),接着进行了项目的测试用例分析,最后给出了结论以及展望。 关键词:天气预报;Android;linux内核

Based on the Android of mobile phone weather forecast system ABSTRACT Weather Forecast for people to understand weather conditions and travel arrangements to bring the convenience, however, most weather forecasts are based on the PC side software, check it is not very convenient. With the popularity of smart phones and 3G technology, mobile client queries become possible to achieve weather, therefore, realize the phone side of weather forecasting system has become an urgent need for people with practical needs. This design uses design techniques developed an Android application in the Android system mobile weather software system, the system by selecting the city to get weather, wind direction, temperature and other information. Phone-based weather forecasting system software allows users around the weather conditions for real-time control, which greatly facilitates the user's travel and travel arrangements, to avoid unnecessary trouble, and highly practical. This paper first introduces the background for the project, the development of purpose and meaning, followed by systems analysis (including needs analysis, research objectives and content), and then analyzes the framework of the Android system, then introduces the technology used in this system as well as platform structures, and finally discusses the detailed design of the system (including functional module design, database design, etc.), followed by analysis of the project's test cases, and finally gives the conclusion and outlook. Keyword: android;the Linux kernel;the weather forecast I

Android手机天气预报项目报告

1.2 开发目标 现有的3G技术和移动互联网技术的快速发展,智能手机功能的不断增强,让基于Android平台的查询需求越来越多。 本软件就是利用现有的网络快速获取网络上的天气信息并显示到手机终端上,为用户提供实时的天气查询和近期天气查询服务,为工作、出行等带来便利。通过Web Service 等技术让用户体验到前所未有的移动计算。 第2章项目设计 2.1 项目总体设计 本软件是一个App Widget应用程序,启动程序后可以进行城市、更新频率的设置,可以通过图片和文字显示当前和未来的天气状况,包括温度、湿度、风向和雨雪情况等。这些天气数据是通过后台服务获取的,这个后台服务可以按照一定的时间间隔,通过Google提供的服务获取天气预报信息,并将天气信息保存在数据库中。 该软件的基本功能需求有: (1) 启动App Widget应用程序; (2) 设置界面:对要显示天气预报的城市及更新频率进行设置; (3) 显示界面:通过文字和图片显示当前的天气情况,包括日期、时间、城市、最高温度、最低温度、当前温度等。 (4) 详细界面:在显示出“显示界面”上所有信息的同时用列表的形式显示今后四天的天气情况。 2.2 技术框架设计 2.2.1 开发环境 Android的上层应用程序是用Java语言开发的,一般情况下是基于Dalvik虚拟机的,所以Google公司推荐使用主流的Java集成开发环境Eclipse。而用Java语言进行开发,需要用到SUN公司提供的Java SDK(其中包括JRE:Java Runtime Environment)。此外,Android的应用程序开发和Java开发有较大区别的,需要使用Google提供的Android SDK。同时,要在Eclipse上安装ADT,为Android开发提供开发工具的升级或者变更,是Eclipse 下开发工具的升级或下载的工具。 简言之,需要以下软件,才能搭建Android开发环境,从而进行Android应用程序的开发。 (1) Java SDK

android天气预报报告

Android天气预报论文 学院: 电子信息工程学院 专业: 计算机应用 学号: 11033801135 学生姓名: 郎红 指导教师: 黄炜 日期: 2013年11月13

一、项目背景 现有的3G技术和移动互联网技术的快速发展,智能手机功能的不断增强,让基于Android平台的查询需求越来越多。 本软件就是利用现有的网络快速获取网络上的天气信息并显示到手机终端上,为用户提供实时的天气查询和近期天气查询服务,为工作、出行等带来便利。通过Web Service等技术让用户体验到前所未有的移动计算。 二、需求分析 (一)功能需求 在这个综合示例中,有一个显示天气情况的用户界面,可以通过图片和文字显示当前和未来几天的天气状况,包括温度、湿度、风向和雨雪情况等。这些天气数据是通过后台服务获取的,这个后台服务按照一定时间间隔,从搜索引擎上获取天气预报信息,并将天气信息保存在后台服务中。示例还需要提供基于SMS短信的天气数据服务,其他手机用户可以向本示例所在的手机上发送SMS短信,在短信中包含特定的关键字,则可以将已有的天气情况通过SMS短信回复给用户。最后,每个被发送的SMS短信都会被记录下来,用户可以浏览或删除这些记录信息。 (二)界面需求 从上面的描述中可以基本了解软件的功能需求,但为了将需求分析过程变得简单明了,首先找出用户界面上需要显示的内容。功能描述中有“显示天气情况的用户界面”和“用户可以浏览或删除这些记录信息”,除此以外,一般应用软件还应有显示配置信息的界面。因此,本示例应该包含三个用户界面:显示天气预报的用户界面、显示已发送SMS短信的用户界面、浏览和设置配置信息的用户界面 (三)内部功能 从用户界面出发,分析隐藏在界面后面的内部功能,这些功能则是程序正常运行的基础(1)显示天气预报的用户界面; ①获取搜索引擎的天气数据 ②保存天气数据信息 (2)显示SMS短信的用户界面 ①根据关键字监视SMS短信 ②发送包含天气信息的SMS短信 ③将发送SMS短信的相关信息写入数据库 (3)浏览和设置配置信息的用户界面 ①将用户设置的配置信息保存到数据库 ②启动时读取数据库中的配置信息 ③支持恢复缺省设置

安卓天气预报课程设计(终审稿)

安卓天气预报课程设计公司内部档案编码:[OPPTR-OPPT28-OPPTL98-OPPNN08]

石家庄铁道大学Android系统课程设计报告 2016 年夏季学期 题目:基于Android的天气预报开发 学院:电气与电子工程学院 专业:电子信息工程 学生姓名: 学号: 指导教师: 完成日期: 2016年7月15日

评分表 说明: 项目一,考察程序运行情况。 项目二,考察完成情况包括功能完整性,工作量,界面,用户体验等。 项目三,考察课程设计报告的格式和完整性。

摘要 随着移动通信技术的发展和无线数据业务的进步,手机已被赋予了除通话以外的其它许多功能。全新的手机软件领域已逐渐聚焦了众多软件开发商的目光,软件开发者和软件用户将共同面临这个振奋人心的新境界。 本设计使用Android设计技术开发了一种运用在Android系统上的手机天气预报软件系统,本系统通过选择城市来获得天气,风向,风向,温度等信息。基于手机的天气预报系统软件可以使用户对于各地的天气情况的实时掌握,极大的方便了用户的出行和行程安排,避免了不必要的麻烦,具有很强的实用性。 关键词:Android;手机天气预报软件。

目录 第1章绪论 (1) 课题研究内容 (1) 课题研究的目的和意义 (1) 课题研究前景 (2) 第2章系统需求分析 (3) 系统功能需求 (3) 系统流程图 (3) 系统界面需求 (4) 系统性能需求 (4) 第3章详细设计和功能实现 (5) 界面的设计 (5) 欢迎界面设计 (5) 菜单界面设计 (6) 各模块详细设计 (6) 欢迎模块设计 (6) 主工程设计 (7) 第4章软件测试 (15) 电脑模拟器测试 (15) 手机端测试 (17)

基于Android天气预报课程设计

教学单位计算机学院 学生学号014301754129 Android课程设计 题目Android天气预报课程设计 学生姓名王能松 专业名称软件工程 指导教师祝攀 2016年11月15日

Android课程设计 (1) 1 绪论 (2) 2背景 (2) 3研究课题 (2) 4 研究目的和意义 (3) 5开发平台和环境 (3) 6需求分析 (4) 7 功能分析 (10) 7.1模块划分 (10) 7.2具体功能实现 (10) 7.3系统E-R图 (11) 8设计小结 (11) 9 参考文献 (12)

Android是一种基于Linux的自由及开放源代码的操作系统,主要使用于移动设备,如智能手机和平板电脑,由Google公司和开放手机联盟领导及开发。Android操作系统最初由Andy Rubin开发,主要支持手机。2005年8月由Google 收购注资。2007年11月,Google与84家硬件制造商、软件开发商及电信营运商组建开放手机联盟共同研发改良Android系统。随后Google以Apache开源许可证的授权方式,发布了Android的源代码。第一部Android智能手机发布于2008年10月。Android逐渐扩展到平板电脑及其他领域上,如电视、数码相机、游戏机等。2011年第一季度,Android在全球的市场份额首次超过塞班系统,跃居全球第一。 2013年的第四季度,Android平台手机的全球市场份额已经达到78.1%。2012年7月美国科技博客网站BusinessInsider评选出二十一世纪十款最重要电子产品,Android操作系统和iPhone等榜上有名。2013年09月24日谷歌开发的操作系统Android在迎来5岁生日,全世界采用这款系统的设备数量已经达到10亿台。2014第一季度Android平台已占所有移动广告流量来源的42.8%,首度超越iOS。Android的Logo是由Ascender公司设计的,诞生于2010年,其设计灵感源于男女厕所门上的图形符号,于是布洛克绘制了一个简单的机器人,它的躯干就像锡罐的形状,头上还有两根天线,Android小机器人便诞生了。Android 是一个全身绿色的机器人,绿色也是Android的标志。颜色采用了PMS 376C和RGB中十六进制的#A4C639来绘制,这是Android操作系统的品牌象徵。有时候,它们还会使用纯文字的Logo。 2背景 天气信息和人们的日常生活息息相关,随着人们活动范围的扩大和出行需要,及时精确的获取天气信息显得越来越重要。为此,本人设计了天气预报软件,它是一种非常实用的天气信息提供软件,使用方便且功能强大,能提供各方面天气相关信息和贴心的生活指数。用户可以通过天气预报软件及时获得近期天气的状况和变化,及时做好各方面计划和防御措施 3研究课题 本次课程设计选择的课题是基于Android天气预报的程序设计,我们知道,现在越来越多的人喜欢出去旅游,而旅游一个重要的前提是有一个好天气,因此,能提前知道天气的变化以及做好准备是非常重要的,因此,开发一款好的天气软件是非常重要的,它能让用户随时随地查询天气信息及天气变化情况,让我们的生活变得更加美好,舒适!

基于Android系统的手机天气预报软件毕业设计(论文)

本科生毕业设计论文 基于Android系统的手机天气预报软件 摘要 随着智能手机的快速普及,智能手机操作系统市场风生水起。为了让智能手机用户能够随时随地查询互联网所提供的服务,一种高效的办法就是将应用系统的功能拓展到手机终端上,让手机能够通过移动网以及互联网访问Web网站并处理各种各样的业务。因此,智能手机的应用软件及其需要的服务将有广阔的发展前景。 在如今这个智能手机系统群雄纷争的时候,2008年Google推出了一款名为Android的开源智能手机操作系统,它采用Linux内核,开放手机联盟(OHA)成员可以任意使用和修改SDK包,系统的开源性使其具有良好的拓展性。这款软件包括了操作系统、用户界面和应用程序,即智能手机工作所需要的全部软件。Android的最大特点是其开放性体系架构,不仅具有非常好的开发、调试环境,而且还支持各种可扩展的用户体验,包括丰富的图形组件、多媒体支持功能以及强大的浏览器。因此,对于软件从业人员来说,Android平台具有无限的吸引力。 本文就在分析讨论Android手机软件开发技术原理的基础上,开发出能为用户提供更好的基于Android平台的3G手机气象软件。 关键词:Android 手机天气预报软件系统

Based on the Android system of mobile phone weather forecasting software Abstract With intelligent the rapid spread of the mobile phone, intelligent mobile phone operating system market wind. In order to make intelligent mobile phone users to anytime inquires the services provided by the Internet, a highly efficient way is the function of the application system will be expanded to the mobile phone terminal, keep the cell phone and Internet access to YiDongWang through Web site and to handle all sorts of business. Therefore, smartphone applications software and its need to service will have broad development prospects. Now in the smart phone system at the strife in 2008, Google launched a new Android smart phone called the open source operating system, it USES Linux kernel, open mobile phone alliance (OHA) members can use any and modify SDK bag, the system of open source sex make its have the expansion of good sex. This software, including the operating system, the user interface and application, namely intelligent mobile phones need all the software. Android is the biggest characteristic of the open architecture, not only has the very good development, debugging environment, but also support various scalable user experience, including rich graphics components, multimedia support functions and strong browser. So, for software professionals for, Android platform with an infinite appeal. In this paper the analysis about Android mobile phone software development based on the principle of technology, to develop a user can provide better based on the Android platform 3 G mobile phone weather software. Keywords: Android mobile phone weather forecasting software system

基于Android平台的天气预报系统的设计与开发

基于Android平台的天气预报系统的设计与开发

基于Android平台的天气预报系统的设计与开发 摘要:安卓是谷歌于2008年推出的一个智能手机操作系统,其独特的设计模式使得开发手机软件变得非常简单。该论文介绍了一款安卓天气预报的设计与实现过程。用户可以通过主界面选择城市来获得包括风力、风向、紫外线强度等的天气信息。基于手机的天气预报系统能够使用户对于各地的天气情况实时掌握,方便用户的出行和行程安排,具有一定的实用性。 关键字:实时预报,Android,温度检测,定位 The Design and Development of Weather Forecast System based on the Android Ⅰ

System Abstract: Android is a Smartphone system launched by Google in 2008, whose unique design pattern makes it easier to develop mobile phone softwares . The paper introduces the process of the design and implementation of a Android weather forecast system. Users can choose a city what he likes from the home screen to get access to the weather information ,including wind,wind direction,strong of ultraviolet light and so on.Weather forecast system based on mobile phone enables users to take the real-time control of weather conditions of all parts,thus bringing great convenience to the user's travel and travel arrangements, and has a certain practicality Keywords: real-time forecast, Android , Temperature detection , location 毕业论文(设计)原创性声明

Android手机天气预报项目报告

开发目标 现有的3G技术和移动互联网技术的快速发展,智能手机功能的不断增强,让基于Android平台的查询需求越来越多。 本软件就是利用现有的网络快速获取网络上的天气信息并显示到手机终端上,为用户提供实时的天气查询和近期天气查询服务,为工作、出行等带来便利。通过Web Service 等技术让用户体验到前所未有的移动计算。 第2章项目设计 项目总体设计 本软件是一个App Widget应用程序,启动程序后可以进行城市、更新频率的设置,可以通过图片和文字显示当前和未来的天气状况,包括温度、湿度、风向和雨雪情况等。这些天气数据是通过后台服务获取的,这个后台服务可以按照一定的时间间隔,通过Google提供的服务获取天气预报信息,并将天气信息保存在数据库中。 该软件的基本功能需求有: (1) 启动App Widget应用程序; (2) 设置界面:对要显示天气预报的城市及更新频率进行设置; (3) 显示界面:通过文字和图片显示当前的天气情况,包括日期、时间、城市、最高温度、最低温度、当前温度等。 (4) 详细界面:在显示出“显示界面”上所有信息的同时用列表的形式显示今后四天的天气情况。 技术框架设计 开发环境 Android的上层应用程序是用Java语言开发的,一般情况下是基于Dalvik虚拟机的,所以Google公司推荐使用主流的Java集成开发环境Eclipse。而用Java语言进行开发,需要用到SUN公司提供的Java SDK(其中包括JRE:Java Runtime Environment)。此外,Android的应用程序开发和Java开发有较大区别的,需要使用Google提供的Android SDK。同时,要在Eclipse上安装ADT,为Android开发提供开发工具的升级或者变更,是Eclipse 下开发工具的升级或下载的工具。 简言之,需要以下软件,才能搭建Android开发环境,从而进行Android应用程序的开发。 (1) Java SDK

android天气预报源代码解析

通过google接口在Android中实现天气预报效果 Android可以通过google实现获取指定经纬度位置或者某一个城市的天气信息。如果是根据经纬度查询天气信息,需要对精度为进行转换,例如lat值为31.174165,需要过滤掉小数点,变为31174165传到接口中,维度也一样处理,处理后传 给https://www.360docs.net/doc/1a5162143.html,/ig/api?weather=,,,31174165,121433841既可以获取数据。这里要注意一个问题,如果大家获取的经纬度序列很长,直接去掉小数点,有时候也无法获取天气信息,例如40.478224838152528,124.97828006744385,去掉小数点后,传到参数位置,无法获取值,需要大家将经纬度按下面方式转换一下,只取小数点后6位就可以了。int latI = (int) (lat * 1E6); int lonI = (int) (lon * 1E6); 下面的例子演示了根据输入城市,获取该城市的天气预报,Weather.java的61行,是根据经纬度获取天气信息。 工程结构:

Weather.java类 package com.AndroidWeather; import java.io.InputStream; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpUriRequest; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.util.EntityUtils; import org.w3c.dom.Document; import org.w3c.dom.NodeList; import org.xml.sax.InputSource; import android.app.Activity; import android.graphics.Bitmap; import android.os.Bundle;

基于android平台的天气预报软件的设计与实现正文__本科毕业设计论文

摘要 随着智能手机一步步走进普通人的生活,它将成为人们获取信息的主要设备。因此手机的娱乐应用服务将会有很大的发展空间手机快捷查询软件就是其中的一项。Android平台提供给用户非常方便的快捷查询功能这将为快捷查询服务的设计与实现提供了更好的平台。另外Android平台基本上是免费的,所以能够有效降低软件的成本,最终让每个用户能够自由地获取信息,也为手机快捷查询服务的普及做出贡献。 本文研究分析了Android平台的系统架构和组件模型接着解析了Android中的重要API和应用构成以Intent和生命周期的机制。在此基础上基于Android平台设计和开发手机快捷查询天气软件。本系统界面友好、操作便捷具有良好的可扩展性和可维护性;系统经过测试、可以稳定运行、能够满足手机用户的基本需求。 关键词智能手机Android API 用户 I

Abstract As smartphones is walking into the life of ordinary people step by step, it will become the main equipment of access to information.Therefore, mobile entertainment application service there will be a very big development space of mobile phone quick query software is one of them.Android platform to provide users with convenient and fast query function for the design and implementation of a quick query service provides a better platform.Also the Android platform is essentially free, so can effectively reduce the cost of software, finally let each user can freely access to information and also contribute to the popularization of mobile phone quick query service. This study analyzes the Android platform system architecture and component model and analyzes the important part of the Android API and application of mechanism with the Intent and life cycle.On the basis of the design and development based on the Android platform mobile phone quick query software in the weather.This system friendly interface, convenient operation, good scalability and maintainability;System tested, stable operation, and can satisfy the basic needs of mobile phone users. Keyword smart phone Android API (Application Programming Interface) User II

基于Android的天气预报APP

基于Android的天气预报APP 摘要:Window 操作系统的诞生成就了微软帝国,同时也造就了PC 时代的繁荣,然而如今,以Android 和iPhone 手机为代表的智能移动设备的发明与互联网云技术的兴起却敲响了PC 时代的丧钟!这也预示着移动互联网时代(3G)已经来临。在这个互联网繁荣的时代,有一颗超新星,以它独特性能优势与人性化的UI 设计使它在短短的几年迅速的占领了智能移动设备的市场份额,它就是Google 的Android!这也意味着Google 在移动互联网时代开始抢跑并领跑。Android 是基于Linux 平台完全开源的手机操作系统,同时开发语言为Java,这对于Java 开发的我们是何等的诱人,程序员的技术要与时代同行,因此我选择了以Android 为平台的手机天气预报系统来作为我的毕业设计,选择手机天气预报系统不仅可以提升技术,同时也很实用,为人们时刻了解天气状况和出行带来了方便。 关键词:Android;数据库;框架模块 Weather Application For Android Abstract: Window operating system was born the achievements of the Microsoft empire,also contributed to the prosperity of the era of PC, however now, to Android and iPhone phone for the rise of the representative of the smart mobiledevices with the invention of the Internet cloud has sounded the the death knell of the era of PC! This also indicates that the mobile Internet Era (3G) has come. In the era of the Internet boom, there is a single supernova, with its unique performance advantages and humanized UI design enable it in just a few years rapidly occupied the market share of the smart mobile devices, it is Google Android! This also means that the Google in the mobile Internet era and lead the false start. Based on Linux platform completely open source mobile operating system. At the same time, the development language for Java, which for java development we is how tempting Android, programmers should be with the times, so I chose to Android platform mobile weather systems as my graduation design, choice of mobile weather forecasting system can not only upgrade technology and also very practical, for people always understand weather conditions and travel brings convenience.

android天气预报报告材料

交通职业学院 2012-2013学年第一学期《Android应用程序开发》期末课程报告 2012年11月 第一章项目背景

现有的3G技术和移动互联网技术的快速发展,智能手机功能的不断增强,让基于Android平台的查询需求越来越多。 本软件就是利用现有的网络快速获取网络上的天气信息并显示到手机终端上,为用户提供实时的天气查询和近期天气查询服务,为工作、出行等带来便利。通过Web Service等技术让用户体验到前所未有的移动计算。 第二章需求分析 一.功能需求 在这个综合示例中,有一个显示天气情况的用户界面,可以通过图片和文字显示当前和未来几天的天气状况,包括温度、湿度、风向和雨雪情况等。这些天气数据是通过后台服务获取的,这个后台服务按照一定时间间隔,从Google上获取天气预报信息,并将天气信息保存在后台服务中。示例还需要提供基于SMS 短信的天气数据服务,其他手机用户可以向本示例所在的手机上发送SMS短信,在短信中包含特定的关键字,则可以将已有的天气情况通过SMS短信回复给用户。最后,每个被发送的SMS短信都会被记录下来,用户可以浏览或删除这些记录信息。 二.界面需求 从上面的描述中可以基本了解软件的功能需求,但为了将需求分析过程变得简单明了,首先找出用户界面上需要显示的容。功能描述中有“显示天气情况的用户界面”和“用户可以浏览或删除这些记录信息”,除此以外,一般应用软件还应有显示配置信息的界面。因此,本示例应该包含三个用户界面:显示天气预报的用户界面 显示已发送SMS短信的用户界面 浏览和设置配置信息的用户界面 三.部功能

从用户界面出发,分析隐藏在界面后面的部功能,这些功能则是程序正常运行的基础 (1)显示天气预报的用户界面; ①获取Google的天气数据 ②保存天气数据信息 (2)显示SMS短信的用户界面 ①根据关键字监视SMS短信 ②发送包含天气信息的SMS短信 ③将发送SMS短信的相关信息写入数据库 (3)浏览和设置配置信息的用户界面 ①将用户设置的配置信息保存到数据库 ②启动时读取数据库中的配置信息 ③支持恢复缺省设置 第三章程序设计 一.用户界面设计 根据需求中的用户界面分析,应用程序应包含三个主要的用户界面,每个用户界面的显示容 在“显示天气预报的用户界面”中,显示目标城市的当前的天气状况,包括城市名称、温度、湿度、风向、雨雪情况和获取数据时间等信息。在界面的下方显示未来四天的天气状况,但仅包括温度和雨雪情况 在“显示已发送SMS短信的用户界面”中,显示每个回复短信的时间、目标手机、城市名称、当天的天气状况和未来一天的天气状况 在“浏览和设置配置信息的用户界面”中,显示希望获取天气预报的城市名称、获取数据的频率和短信监视的关键字,并允许用户设置是否提供短信服务,以及是否记录回复短信信息 用户界面草图:

Android手机天气预报项目报告

开发目标 现有的3 G技术和移动互联网技术的快速发展,智能手机功能的不断增强,让基于An droid平台的查询需求越来越多。 本软件就是利用现有的网络快速获取网络上的天气信息并显示到手机终端上,为用户提供实时的天气查询和近期天气查询服务,为工作、出行等带来便利。通过Web Service等技术让用户体验到前所未有的移动计算。 第2章项目设计 项目总体设计 本软件是一个App Widget应用程序,启动程序后可以进行城市、更新频率的设置,可以通过图片和文字显示当前和未来的天气状况,包括温度、湿度、风向和雨雪情况等。这些天气数据是通过后台服务获取的,这个后台服务可以按照一定的时间间隔,通过Google提供的服务获取天气预报信息,并将天气信息保存在数据库中。 该软件的基本功能需求有: (1)启动App Widget应用程序; (2)设置界面:对要显示天气预报的城市及更新频率进行设置;

(3)显示界面:通过文字和图片显示当前的天气情况,包括日期、时间、城市、最高温度、最低温度、当前温度等。 (4)详细界面:在显示出“显示界面”上所有信息的同时用列表的形式显示今后四天的天气情况。 技术框架设计 开发环境 An droid的上层应用程序是用Java语言开发的,一般情况下是基于 Dalvik虚拟机的,所以Google公司推荐使用主流的Java集成开发环境Eclipse。而用Java语言进行开发,需要用到SUN公司提供的Java SDK(其中包括JRE Java Run time En viro nment) 。此外,An droid 的应用程序开 发和Java开发有较大区别的,需要使用Google提供的An droid SDK。同时,要在Eclipse上安装ADT为An droid开发提供开发工具的升级或者变更,是Eclipse下开发工具的升级或下载的工具。 简言之,需要以下软件,才能搭建An droid开发环境,从而进行An droid 应用程序的开发。 (1)Java SDK (2)Eclipse (3)An droid SDK ⑷ADT

相关主题
相关文档
最新文档