基于Android的天气预报软件设计
2016-04-14张瑶丁胜乐冬冬张潇
张瑶 丁胜 乐冬冬 张潇
摘要:为了方便人们用智能手机查看天气预报信息,设计了一个C/S模式下基于Android系统的天气预报软件,该软件由服务端和客户端两个部分组成,其中服务端采用MySQL作为数据库,Tomcat作为实景天气服务器,用户通过客户端查询全国城市天气信息和未来天气基本信息及生活指数的显示。软件主要功能包括城市管理模块、显示天气模块、实景天气模块、用户管理模块和设置界面模块。经过测试,结果表明该软件使用方便,完全满足人们全面了解天气信息的需求。
关键词:Android;Java;XML;天气预报;生活指数
中图分类号:TP311 文献标识码:A 文章编号:1009-3044(2016)05-0100-03
Abstract: In order to facilitate people to use smart phones to view the weather forecast information.A weather forecast software based on Android system is designed in C/S mode. The software consists of two parts: the server and the client. The server uses MySQL as the database. Tomcat is real weather server. Users use the client to query the national urban weather information, future weather basic information and life index display. The main functions of the software include urban management module, display module weather, real weather module, user management module and interface module. Having run some tests, the results show that the software is easy to use, fully meet the needs of people to fully understand the weather information.
Key words: Android; Java; XML; weather forecast; life index
1绪论
天气信息和人们的日常生活息息相关,随着人们活动范围的扩大和出行需要,及时精确的获取天气信息显得越来越重要。为此,本文设计了天气预报软件,它是一种非常实用的天气信息提供软件,使用方便且功能强大,能提供各方面天气相关信息和贴心的生活指数。用户可以通过天气预报软件及时获得近期天气的状况和变化,及时做好各方面计划和防御措施[1-3]。
2 需求分析
2.1本软件功能
本软件是一个基于Android的天气预报软件[4-6],根据使用场景,软件具有如下功能:
1)城市管理模块,提供城市的添加、删除和选择。
2)显示天气模块,提供当日天气信息和未来天气信息的显示,天气分享功能。
3)实景天气模块,提供实景图片的上传和查看。
4)用户管理模块,提供用户注册,登陆,修改和查看个人信息,密码的找 回和修改。……
