基于J2ME平台的手机天气预报程序的设计与实现
目录
绪论 1
1 课题总体介绍 2
课题介绍 2
课题目的及意义 2
已了解的本课题国内外研究现状 2
主要研究内容和功能 2
2 J2ME开发环境的配置和J2ME框架 4
JDK的安装 4
Java基本开发环境JDK的配置 5
安装Java开发平台Eclipse 5
安装WTK 5
在Eclipse上面配置SDK 5
J2ME体系结构 5
J2ME生命周期 7
3 天气预报程序的设计 9
设计准备 9
设计思路 9
程序架构 11
4 天气预报软件的编写 15
建立http连接 15
使用KXML解析器 16
程序界面编程 19
使用记录集(RMS) 23
J2ME中的按键命令响应 26
致谢 28
参考文献 29
基于J2ME平台的手机天气预报程序
的设计与实现
摘要
随着移动通信业的突飞猛进,移动开发这个新鲜的字眼慢慢成为开发者关注的热点。最近一份在网上进行的调查显示,%的受访者涉足嵌入式/移动设备应用开发,这个数字可能略高于实际的比例,但也足以说明嵌入式/移动设备应用开发是一块诱人的新鲜奶酪。J2ME(Java 2 Micro Edition)是嵌入式/移动应用平台的王者,Linux和WinCE分列二、三位。Nokia等厂商力推的Symbian平台目前开发者占有率尚未达到满意水平,考虑到调查项合并了嵌入式设备(例如PDA)和移动设备(例如智能手机),Symbian、WinCE系列在移动平台上会是与J2ME主要竞争对手。如果厂商能在标准实现上做得更加规范,则J2ME的跨平台特性会发挥得更加淋漓尽致。
本文主要讨论了在J2ME平台下,如何开发一个具备连接网络、解析数据、存储城市功能的天气预报程序。论文首先介绍了J2ME平台的特点、历史,进而引出在此平台下开发一个天气预报软件的构想,并对其进行了可行性分析。接着进行了的系统设计,从多个方面分析了如何实现本程序的具体细节,如分别详细分析了网络连接、数据获取、数据解析、数据视图呈现、数据存储等模块实现方法。最后对系统进行了实现。系统的运行情况良好,完全达到了设计的要求。
【关键词】J2ME 嵌入式开发移动开发嵌入式设备天气预报
J2ME Platform Based Design and Realization of Weather Forecast Program on Mobile Phone
Abstract
With the rapid development of munication, mobile developing has gradually e a hotspot concerned by developers. A recent online survey shows that there are percent of respondents who engage in the investigation or development on embedded/mobile device. Although this figure might be slightly higher than actual that, it can enough prove that embedded/mobile device application is a captivating fresh cheese. J2ME (Java 2 Micro Edition) retains top spot on the embedded/mobile platform, while Linux is in second place, and WinCE No. 3. three persons. Developer's occupation rate of Symbian platform developed and tried hard to mend by Nokia has not reached the satisfactory level yet now. Considering that investigates one has amalgamated embedded apparatus (such as PDA) and mobile device (such as the intellectual mobile phone), we think that Symbian
基于J2ME平台的手机天气预报程序的设计与实现毕业设计论文 来自淘豆网www.taodocs.com转载请标明出处.