基于安卓Android平台的天气预报软件的设计
1.无需注册登录,支付后按照提示操作即可获取该资料.
2.资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用.
密 惠 保
基于安卓Android平台的天气预报软件的设计(任务书,开题报告,论文说明书11000字,程序代码)
摘要
随着智能手机的快速发展,手机的功能已经不再仅限于打电话和发短信,越来越多的安卓应用出现在用户手机上,天气预报软件作为一款功能强大,占内存较小的软件亦吸引了大量的用户。传统的电视广播媒体在信息传播上具有很大的局限性,往往不能及时将天气信息传递给百姓,而手机则刚好弥补了这一缺点,因此,研究一款基于安卓平台的天气预报软件意义重大。
本文将对天气预报接口技术进行研究,包括天气预报信息的获取,对返回的字符串进行解析并存储。本设计是在安卓平台上开发一款手机天气预报软件,所有天气预报的内容均是来自于中国天气网,所以获取的信息需要向网站提供的接口发送请求。在使用接口的时候我们不必了解接口内的详细功能,只需要知道接口的功能即可,在这里我用到了两个接口,一个是全国城市查询接口,另一个是全国天气信息查询接口。第一个接口的功能是通过向网站发送请求可以依据请求里的code从网站获得全国省市县的数据,第二个接口的功能是:在找到需要查询的城市代码之后,通过向中国天气网发送包含城市代码的请求,可以从网站获得一个返回的字符串,这个字符串里就包含了该城市的各种天气情况。第二个需要应用到的技术就是解析字符串,由于字符串里的信息是以逗号分开的,所以通过预先了解字符串里各种信息的相对顺序,然后将分开的天气信息一次存储在文件中。在解析完成之后就可以将存入的数据以textview的形式显示到界面从而查询到天气信息。
这篇论文在上述技术的支持上成功完成了本课题的基本功能,而且对软件进行了试用,用户可以通过选择城镇查询到该地方的气象情况,温度等基本信息。基于android平台天气预报软件可以给用户提供实时天气情况信息,作为出行的参考,给用户的生产生活带来很大的便利,是一款实用性很强的软件。
关键字:安卓,天气预报,手机软件,天气查询,接口
ABSTRACT
With the rapid development of smart phones,mobile phones are no longer limited to the function of calling and send message,more and more android app appear on the user’s phone,weather forecast as a powerful software,software of small memory also attracted a large number of users.Traditional television media in the dissemination of information has great limitations, often can not be timely weather information to the people, but the phone is just to make this shortcoming. Therefore, the study of a based on the Android platform weather forecast software significance major.
In this paper, the weather forecast interface technology is studied, including the acquisition of weather forecast information, analyze and storage the return string . The design is the development of a mobile phone weather forecast software on Android platform, all the weather forecast is from the Chinese weather network, so the information needed to obtain the interface to send a request to the website. When using the interface we don't need to understand the detailed function within the interface, only need to know the function of the interface can be, here I use the two interfaces, a is national urban query interface, another is the weather information query interface. The first interface function is through to the site to send requests can be according to the request of code obtained from a site in provincial cities and counties nationwide data, the function of the second interface is: after finding the need to query the city code, through to China Weather Network to send contains city code request, can return a string from the site, the string contains the city for various weather conditions. The second one needs to be applied to the technology is to parse the string, because the string information is separated by commas, so by prior knowledge of the string in all kinds of information relative order, separately then weather information once stored in the file. After the completion of the analysis we can display the stored data to textview to query weather information. [资料来源:www.THINK58.com]
This paper successfully achieve the implementation of the weather forecasting software design and Implementation based on android on the basis of technology in last paragraph, and the software was tested, the user can query city's weather by choosing a city, the temperature and other basic information. This software can provide users with real-time weather information, as a reference to travel, to bring great convenience to the user's production and life, is a very practical software.
KEY WORDS:Android, Weather Forecast, Mobile Phone Software, Weather Query, Interface
目 录
第1章 绪论 1
1.1 研究背景 1
1.2 目的和意义 1
1.3 国内外发展现状 1
第2章 Android概况 3
2.1 Android操作系统 3
2.2 Android发展史 3
[资料来源:http://www.THINK58.com]
2.3 系统架构 4
2.4 组件 4
2.5 布局管理器 5
2.5.1线性布局(LinearLayout) 5
2.5.2表格布局(TableLayout) 5
2.5.3帧布局(FrameLayout) 5
2.5.4相对布局(RelativeLayout) 5
2.6 Android数据存储 5
2.7 Android开发环境配置 6
2.7.1下载JDK并安装 6
2.7.2下载Android SDK并安装 6
2.7.3下载Eclipse和ADT并安装 7
2.7.4开发环境测试 7
第3章 需求分析 8
3.1 可行性分析 8
3.1.1经济可行性分析 8
3.1.2技术可行性分析 8
3.2 模块划分 8
第4章 系统设计及编码 10
4.1 模块分析 10
4.2 UI界面实现 10
4.3 城市信息获取 11
[来源:http://think58.com]
4.4 天气信息获取 15
4.5 天气信息显示 15
第5章 测试 17
5.1 地点选择页面 17
5.2 天气信息显示界面 17
结束语 19
参考文献 20
致谢 21 [版权所有:http://think58.com]
上一篇:基于Struts2框架的学习网站的建设(web端和移动端)(bootstrap,MySQL)
下一篇:基于RFID的机场行李快速匹配系统的设计(Java,MySQL)