1、 基于 Android 平台的聊天系统设计与实现 本科毕业设计(论文) 基于 Android 平台的聊天系统设计与实现 学 院 名 称 计算机科学与技术 专 业 名 称 信息安全 学 生 姓 名 学号 指 导 教 师 二一三年六月 基于 Android 平台的聊天系统设计与实现 摘要 本课题主要研究基于 Android 的移动聊天系统, 以更好的用户体验性为目的 开发出界面简洁, 用户易操作的移动即时通信聊天工具。 该聊天工具的主要功能: 用户注册,登录,好友一对一聊天,群组聊天。在该即时通信工具中的数据传输 是通过 Socket 编程实现。客户端之间通过服务器对数据的转发实现相互通信。 本文
2、首先概述了 IM 聊天工具的背景,其次是课题的目的及意义,然后介绍 了软件开发的环境和开发工具及其技术,给出了软件的系统架构,各个模块的流 程图及用例,然后详细介绍了改即时通信的工具的设计与实现,最后对系统进行 简单的测试。 关键词:Android,即时通信,多线程,注册,登录,聊天 基于 Android 平台的聊天系统设计与实现 AbstractAbstract The main research topics of the graduation Android-based mobile chat system, according to its architecture and desig
3、n principles developed interface is simple and easy to operate mobile instant messaging chat tools. The main function of the chat tool: user registration, login, friends one-on-one chat, group chat. Data transmission in the real-time communication tools Socket Programming. Communicate with each othe
4、r on the data forwarding between the client through the server. The paper first outlines the background of the IM chat tool, followed by the purpose and significance of the issues, and then describes the software development environment and the development of tools and technology, the software syste
5、m architecture, the flow chart of each module and use cases, and then detailed change instant messaging tool design and implementation, and finally a simple test system. Keywords: Android, instant messaging, multi-threaded, socket, client / server 基于 Android 平台的聊天系统设计与实现 目录目录 第一章 绪论 1 1.1 聊天软件背景 1 1
6、.2 课题目的及意义 2 1.4 设计思想 4 1.5 工作方法 4 第二章 Android 聊天系统需求分析. 5 2.1 任务概述. 5 2.1.1 目标 5 2.1.2 用户特点 5 2.1.3 定义 5 2.1.4 假定与约束. 6 2.2 需求规定 6 2.2.1 系统功能需求 6 2.2.2 用户注册. 9 2.2.3 用户登录 11 2.2.4 用户主面板 12 2.2.5 用户聊天. 13 2.2.6 好友上下线提示 15 2.2.7 增加好友. 15 2.3 对性能的规定 15 2.3.1 精度. 15 2.3.2 时间特性要求. 16 2.3.3 灵活性. 16 2.4 输人输出要求:. 16 2.5 数据管理能力要求. 16 2.6 其他专门要求. 16 2.7 运行环境规定. 16 2.8 支持软件. 17 第三章 基于 Android 平台的聊天系统设计 18 3.1 定义 18 3.1.1 专业术语. 18 3.2 总体设计 18 3.2.1 运行环境. 18 3.3 基本设计概念和处理流程. 19 3.3.1 系统逻辑构架图(图 3