摘 要:基于Android的新闻客户端是一款基于Android手机的应用软件,其主要功能是让用户能够随时查看世界的实事资讯,为用户提供快捷,方便的阅读新闻方式。本文首先介绍了该新闻客户端的开发背景以及意义,然后对涉及到的相关技术进行说明,最后详细的阐述该新闻客户端具体功能实现。本系统基于C/S结构,使用HTTP协议实现客户端与服务器的通信,利用Json数据实现数据的传输,通过Oracle实现服务器端数据的存储以及SQLite实现本地数据的存储。新闻客户端的主要的实现是在Android平台上,客户端发送请求,服务器响应请求并发送相应的实事资讯,最后客户端以列表的形式展现海量的资讯。该新闻客户端主要分为6个模块:海量资讯、要闻推送、离线阅读、登陆注册、收藏新闻、广告模块。58827
毕业论文关 键 词:海量资讯,离线阅读,C/S 结构,Json数据传输,数据库存储
Abstract:News based on the Android client is a phone application software and its main function is to allow the user to view the world of practical information at any time and to provide users with fast and convenient reading news. In this paper, we first introduce the development background and significance of the news client side, and then carries on the related technologies involved, finally detailed elaborate the news client specific functions to achieve. This system based on C / S structure, using the HTTP protocol to realize the communication between the client and the server. The JSON data is used to realize the data transmission,and the oracle implementation is used for server-side data storage and SQLite for local data storage. Realization of the main news client is in the Android platform, the client sends a request and server responds to the request and sends the corresponding practical information. Eventually the client shows vast amounts of information in the form of a list . The news client is pided into six modules: massive information, news push, offline reading, land registration, used news, and advertising module.
Keywords: mass information,offline reading, C/ S structure , Json data,database storage
目 录
1 引言 4
1.1 课题的背景 4
1.2 课题的意义 4
1.3 本文研究内容 5
2 开发环境及技术 5
2.1 开发环境 5
2.2 HTTP协议 5
2.3 JSON解析 7
2.4 C/S结构 7
2.5 SQLite数据库/Oracle数据库 7
2.6 Android四大组件 8
3功能需求分析 8
3.1 主要功能模块介绍 9
3.2 查看新闻流程 9
4 详细设计与具体功能的实现 10
4.1 数据库的设计 10
4.1.1 服务器端 11
4.1.2 客户端 13
4.2 客户端页面 14
4.2.1 欢迎界面 14
4.2.2 客户端首页 15
4.2.3 刷新新闻 16
4.2.4 加载新闻 18
4.2.5 查看新闻详情