基于Android的天气预报系统设计

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Southwest University of Science and Technology

本科毕业设计(论文)

题目:基于Android的天气预报系统设计

学生姓名: xxx

学生学号: xxxx

专业: 通信工程

指导教师: xxx

学院(部): 信息工程学院

教务处制表

基于Android的天气预报系统设计

摘要

最近几十年来,全球范围气候异常,人们面临越发严重的能源、粮食和水资源危机,因而国家对气象工作提出了迫切要求。同时,随着人们生活水平的大幅提高,大家对生活质量的要求也随之高涨,个人、企业乃至社会都迫切的需要随时随地的掌握准确即时的天气预报信息。

本论文介绍了一款基于Android的天气预报系统设计及实现过程。本设计采用C/S模式,客户端通过HTTP连接获取聚合数据API的天气数据,通过手动选择城市或者自动定位查询天气信息。采用了Android 开源系统技术,它可以通过图片和文字显示当天和未来几天的天气情况。本设计通过定位城市获取气象信息,用户可以了解到实时天气、未来三天天气、空气质量等数据,避免损失方便出行,具有一定的观赏性和可用性。

软件主要功能包括加载界面模块、城市选择模块、显示天气模块、详细信息模块和数据刷新模块。经过测试,结果表明该软件使用方便,完全满足人们全面了解天气信息的需求。

关键词:气象,互联网,Android,天气预报

DESIGN OF WEATHER FORECAST SYSTEM BASED

ON ANDROID

ABSTRACT

In recent decades, the global climate anomalies, people are facing more serious energy, food and water crisis, and thus the country on the meteorological work made an urgent request. At the same time, with the substantial improvement in people's living standards, we also demand for quality of life also rose. Individuals, businesses and even the society urgent need for any time and anywhere to grasp the accurate weather forecast information.

This paper introduces a design and implementation process of a weather forecasting system based on Android. The design uses C / S mode, the client through the HTTP connection to obtain the data of the aggregation data API. Querying weather information by manually selecting the city or automatically locating. Using the Android open source system technology, it can be through the pictures and text shows the day and the next few days of weather conditions. The design through the positioning of the city to obtain weather information, users can understand the real-time weather, the next three days weather, air quality and other data, to avoid loss of travel, with a certain ornamental and usability.

The main functions of the software include loading interface module, city selection module, display weather module, detailed information module and data refresh module. Test results show that the software is easy to use, fully meet the people a comprehensive understanding of weather information needs.

Key words:meteorology, Internet, Android, weather forecast

目录

第一章绪论---------------------------------------------------------------------------------------------1

1.1系统开发的目的及意义----------------------------------------------------------------------1

1.2研究现状和发展趋势-------------------------------------------------------------------------------1

1.3数据来源介绍-------------------------------------------------------------------------------------2

1.4论文组织结构-------------------------------------------------------------------------------------2 第二章平台及关键技术介绍------------------------------------------------------------3

2.1 Android介绍-------------------------------------------------------------------------------------------3

2.2 Android与其他平台的比较-------------------------------------------------------------------------4

2.3 Android基础知识-------------------------------------------------------------------------------------4

2.3.1 四大组件---------------------------------------------------------------------------------------4

2.3.2 六大布局---------------------------------------------------------------------------------------5

2.3.3 五大存储---------------------------------------------------------------------------------------5

2.4 Android基本架构------------------------------------------------------------------------------------6 第三章开发环境搭建---------------------------------------------------------------------------------------9

3.1 开发环境介绍--------------------------------------------------------------------------------------9

3.2 开发所需设备--------------------------------------------------------------------------------------11

3.2.1 eclipse软件-----------------------------------------------------------------------------------11

3.2.2 Android手机/模拟器------------------------------------------------------------------------11 第四章系统分析---------------------------------------------------------------------------------------------12

4.1 功能分析--------------------------------------------------------------------------------------------12

4.2 流程分析--------------------------------------------------------------------------------------------13

4.3 UI界面分析-----------------------------------------------------------------------------------------14

4.3.1 引导页面-------------------------------------------------------------------------------------14

4.3.2 主界面----------------------------------------------------------------------------------------14

4.3.3 城市选择界面-------------------------------------------------------------------------------15 第五章详细设计--------------------------------------------------------------------------------------------16

5.1 创建工程--------------------------------------------------------------------------------------------16

5.2 UI实现-----------------------------------------------------------------------------------------------17

5.2.1 引导界面-------------------------------------------------------------------------------------17

5.2.2 主界面----------------------------------------------------------------------------------------18

5.2.3 城市选择界面-------------------------------------------------------------------------------19

5.3 数据获取及解析-----------------------------------------------------------------------------------19

5.3.1 聚合数据平台申请数据-------------------------------------------------------------------19

5.3.2 根据城市名查询天气----------------------------------------------------------------------20

5.3.3 城市天气三小时预报----------------------------------------------------------------------21

5.3.4 支持城市列表-------------------------------------------------------------------------------21

5.3.5 城市空气质量-------------------------------------------------------------------------------22

5.4 下拉刷新------------------------------------------------------------------------------------------22

5.5 Service 初始化及实现--------------------------------------------------------------------------23

相关文档
最新文档