登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 计算机类 > 计算机科学与技术 > 正文

Android天气预报软件设计与实现毕业论文

 2021-04-29 09:04  

摘 要

随着人们出行越来越频繁,天气预报这一服务也越来越受人们所关注。近几年安卓手机智能终端被广泛使用,在安卓平台上开发天气预报APP能够扩大天气预报的覆盖面,使人们能够更加方便、及时地获取到天气信息。通过研究天气预报在国内外的发展现状,本文分析、设计并实现了基于安卓平台上的天气预报系统。工作主要包含以下几个方面:

(1)分析国内主流天气预报软件,对系统做了较为充足的需求分析,明确了系统需要实现的功能,确定了软件设计和开发阶段的方向与指导,以及系统开发所需要的关键技术,如异步消息处理机制、百度SDK等。

(2)进行了系统设计。系统设计包括功能模块设计、界面设计和数据处理与存储三个内容。系统使用HttpClient进行网络通信,并解析返回的JSON数据并存入内存中,同时更新天气界面。

(3)进行系统实现和测试。系统实现了需求分析阶段定义的功能,具有良好的出错处理以及提示功能。界面设计合理、简洁。经测试,系统达到了预期效果,能够满足人们的实际需求。

关键词:天气预报;HttpClient;移动端应用;

Abstract

As people travel more and more frequently,more and more people are concerned about the service of weather forecast. In recent years, the mobile intelligent terminal has been widely used by people popularly . Therefore, the development of the weather forecast APP on Android platform will undoubtedly expand the coverage of weather forecast and make people get the weather information more timely and more convenient.

This thesis analyzes, designs and implements the weather forecast system based on the Android platform by studing the development of weather forecast at home and abroad.The main works in this thesis include the following several aspects:

(1)By analyzing the domestic mainstream weather forecast software, the thesis has done a more adequate demand analysis for the system. The thesis also confirms the functions which system needs to achieve as well as provides the clear direction and guidance for the stages of software design and software development.At the same time, the theis identifies the key technologies needed in the system development, such as asynchronous message processing mechanism, Baidu SDK, etc..

(2)Finishing the system design which includes three contents:the function module design, interface design and data processing and storage .The system uses HttpClient to communicate with the network, and resolve the returned JSON data, update the weather interface and stored the data in the memory.

(3)System implementation and testing.The system realizes all the functions defined in the requirement analysis stage and has a good deal with the error or the corresponding tips. Interface design is reasonable and simple. The testing tells that the system achieves the expected goals and meets the actual needs of people.

Key words: weather forecast; HttpClient; mobile terminal application;

目录

第一章 绪论 1

1.1 国内外研究现状 1

1.2 目的及意义 2

1.2.1 目的 2

1.2.2 意义 2

1.3 研究目标及内容 2

第二章 相关技术介绍 3

2.1 异步消息处理机制 3

2.2 访问网络和解析数据 3

2.3 服务和广播 3

2.4 百度定位SDK 4

第三章 天气预报需求分析 5

3.1 可行性分析 5

3.2 功能需求 5

3.3 用例分析 5

3.4 非功能性需求 10

第四章 系统设计 11

4.1 功能模块设计 11

4.1.1 定位功能模块设计 11

4.1.2 城市选择模块设计 12

4.1.3 天气更新模块设计 13

4.1.4 设置皮肤功能模块设计 14

4.1.5 网络通信模块设计 15

4.2 界面设计 16

4.2.1 主界面设计 16

4.2.2 选择城市界面设计 17

4.2.3 皮肤设置界面设计 17

4.2.4 定时设置界面设计 18

4.3 数据封装与存储设计 18

4.3.1 服务器传回的JSON数据 18

4.3.2 解析数据并封装进实体类 20

4.3.3 数据存储设计 21

第五章 系统实现与测试 22

5.1 系统功能实现 22

5.1.1 定位模块实现 22

5.1.2选择城市模块实现 23

5.1.3 天气更新模块实现 24

5.1.4 设置皮肤模块实现 26

5.1.5 网络通信模块实现 27

5.2 系统测试 28

5.2.1定位功能测试 28

5.2.2 选择城市模块测试 29

5.2.3天气更新模块测试 29

5.2.4 设置皮肤模块测试 30

5.2.5 网络通信模块测试 31

5.2.6 系统测试结论 31

第六章 总结与展望 32

6.1总结 32

6.2展望 32

参考文献 34

致谢 35

第一章 绪论

1.1 国内外研究现状

天气预报就是根据当前及近期的天气形势,加上对卫星云图和天气图的分析,结合有关气象资料、地形和季节特点、群众经验等综合因素,对某地未来一定时期内的天气状况进行预测[1]。近几年,遥感技术,电子计算机等技术发展迅速,逐渐进入天气预报业务,成为了进行大气探测的新型技术。使用计算处理和快速通信的机制,可以获取更多的大气信息,这极大的推动了天气预报业务的发展。

国外天气预报业务发展的一个重要趋势是日益趋向自动化,即把自动化观测、数据处理、通信及客观分析、预报制作和发布结合成一个完整的自动化系统。而国内天气预报业务近十年也发展迅速,但总体来说,在数值模式,资料同化,卫星资料应用等方面和国外相比还是有些许差距。

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图