资料详情

安卓聊天室App的设计与实现

头像

android

编号:3466

安卓聊天室App的设计与实现

摘要

 

07Google发布Android后,方便快捷的用户体验使得移动即时通讯成为即时通讯市场的新宠。作为互联网时代的新兴产业,即时通讯在整个互联网市场中占据着越来越重要的地位。

系统是基于Android平台开发的一款手机聊天客户端应用程序。系统基于环信IM服务器,实现了注册登录,会话列表的获取,好友列表的获取,文本信息的即时通讯等功能。系统主要使用轻量型嵌入式数据库SQLite来存储数据,运用x-utils框架实现对数据库的操作。

本文在分析了当前环境下聊天App的发展前景后,进行了系统的设计和实现,并对系统进行了完整的测试。系统具有界面友好,操作简单,方便实用的特点。

 

关键词: Android即时通讯环信;聊天App


Design and Implementation of Android Chat room

Abstract

 

After 2007 Google released Androidbecause the convenient user experiencemobile IM become the new darling of the instant messaging marketAs an emerging industry in the age of the Internetinstant messaging occupy an increasingly important position in the Internet market

This system is based ring letter IM serverimplements registration and loginsession to obtain the listget a list of friendschat text messages and other functionsThe system main use of lightweight embedded database SQLite to store datathe use of x-utils framework to achieve operation of the database

After analyzing the prospects for development in the current environment to chat Appwe carried out the design and implementation of the systemand the system has been fully tested

KeywordsAndroidinstant messagingring letter

   1

1  绪论 2

1.1课题背景 2

1.2即时通讯市场发展现状 2

1.2.1 即时通讯市场状况 2

1.2.2 即时通讯市场细分 3

1.2.3 即时通讯的前景 3

1.3本文主要工作 4

1.4论文的组织结构 4

2  Android的架构分析 5

2.1 Android特征 5

2.2 Android的架构 6

2.3 Android的工作机制 7

2.3.1 Activity 7

2.3.2 Service 8

2.3.3 Content Provider 9

2.3.4 Broadcast Receiver 9

2.4 Android和其它手机操作系统的比较 9

2.5 本章小结 10

3 即时通讯系统 11

3.1 系统概述 11

3.2 即时通讯简介 11

3.2 环信简介 12

3.3 系统架构 13

3.4 网络通信 13

2.3.4 网络协议 13

2.3.4 GPRSIntenet的连接 16

3.5 Android SDK 介绍 16

3.6 本章小结 18

4 系统的设计与实现 19

4.1 系统项目结构设计 20

4.2 系统客户端的设计与实现 21

4.2.1 用户界面 21

4.2.2 数据存储 22

4.3 即时通讯流程描述 24

4.3.1 判断网络是否连接 24

4.3.2 用户的登录和登出 24

4.3.3 会话列表的读取 26

4.3.4 好友列表的读取 27

4.3.5 发送和接收消息 27

4.4 本章小结 29

5 系统的部署及测试 30

5.1系统部署 30

5.2系统测试 30

5.3本章小结 32

结论与展望 33

   34

参考文献 35

     36

附录A 外文文献及其翻译 36

附录B 主要参考文献的题录及摘要 45

 

5-3 会话列表界面

5-4 好友列表界面