摘 要
聊天一直是网民们上网的主要活动之一,网上聊天的主要工具已经从初期的聊天室、论坛变为以MSN、OICQ(又称QQ)为代表的即时通讯软件。在Android系统的出现,腾讯公司推出了微信软件,在目前的手机用户中,使用得非常的广泛,本设计的主要内容就是根据微信的一些功能,设计一个仿微信程序,主要功能包含了用户的注册和登录、添加好友、文字和语音聊天、发送图片等功能。
本系统是基于Android平台设计的仿微信软件,实现微信程序的基本功能,能够完成用户注册、用户登录、添加好友、文字聊天、语音聊天以及好友管理等功能。
此次设计是基于Google Android操作系统进行开发的手机软件,我们简单的分析Android现状,系统架构分析,以及开发环境配置。详细介绍在本次设计当中已经使用到的Android组件(内容提供者,服务,活动,广播),各种基本UI控件,常用的界面布局(帧布局,相对布局,线性布局,绝对布局,表格布局),常用的数据存储方式(网络存储,文件存储,xml存储,SQLite存储)以及在开发中经常使用到的DDMS和Log类的使用和Debug调试。
关键词:Android,微信,聊天
ABSTRACT
Chat is one of the main activities of Internet users have access to the Internet, the main tool for online chat from initial chat rooms, forums become instant messaging software MSN, OICQ (also known as QQ). In the emergence of the Android system, Tencent launched a micro letter in the current mobile phone users, the use of a very wide range, the design of the main content is based on some features of the micro-channel design an imitation micro-letter program, the main function contains the user's registration and login, add friends, text and voice chat, send pictures and other functions.
The basic functions of the system is based on the Android platform designed imitation micro-letter software, micro-letter program, to complete user registration, user login, add friends, text chat, voice chat and friends management and other functions.
The design is based on Google Android operating system developed mobile phone software, a simple analysis the Android status, system architecture analysis, as well as the development environment configuration. Details in the design of which has been used to Android components (content providers, services, activities, radio), basic UI controls, interface layout (frame layout, the relative layout and linear layout, absolute layout, form layout ), commonly used data storage (network storage, file storage, xml storage SQLite storage), and is frequently used in the development of the use of DDMS and Log and Debug debugging.
Keywords: Android, micro-letters, chat
目 录
摘 要 - 5 -
ABSTRACT - 6 -
第1章 绪论 - 10 -
1.1 开发背景 - 10 -
1.2 课题的内容 - 11 -
1.3研究现状 - 11 -
1.4开发成本分析 - 11 -
第二章 Android简介 - 13 -
2.1 什么是Android - 13 -
2.2 Android的优势 - 13 -
2.3 Android的不足 - 14 -
2.4 Android带来的影响 - 14 -
2.4.1 对消费者的影响 - 14 -
2.4.2 对手机制造商的影响 - 15 -
2.4.3 对运营商的影响 - 15 -
2.5 JAVA介绍 - 15 -
2.6 Android的系统架构 - 16 -
2.7 Android内核 - 17 -
2.8 Lib和运行环境 - 17 -
2.8.1 Lib - 17 -
2.8.2 运行环境 - 18 -
2.9 应用和框架 - 18 -
第三章 仿微信程序的系统分析 - 19 -
3.1 总体需求 - 19 -
3.2 功能需求 - 19 -
3.3 开发运行环境需求 - 20 -
3.4 性能需求 - 20 -
3.4其它需求 - 20 -
3.4 系统数据流图 - 21 -
第四章 系统总体设计 - 23 -
4.1 模块的划分与功能设计 - 23 -
4.2 系统功能模块图 - 23 -
4.3 各个模块基本流程图设计 - 24 -
4.4 系统E-R图 - 25 -
4.5 数据库表设计 - 26 -
第五章 系统详细设计 - 27 -
5.1 启动界面 - 27 -
启动微信程序,会加载一个启动界面。 - 27 -
5.2 登陆模块 - 27 -
5.3 用户注册 - 30 -
5.4 好友列表 - 33 -
5.5 添加好友 - 35 -
5.6 聊天功能 - 35 -
5.7开发中遇到的问题 - 37 -
第六章 测试 - 39 -
6.1测试方案设计 - 39 -
6.1.1 测试策略 - 39 -
6.1.2 测试安排 - 39 -
6.1.3 测试资源 - 39 -
6.2测试用例构建 - 40 -
6.2.1测试用例编写约定 - 40 -
6.2.2测试用例设计 - 40 -
6.2.3测试分析 - 41 -
结 论 - 42 -
参考文献 - 43 -
第1章 绪论
1.1 开发背景
Android 是Google 于2007 年11 月5 日宣布的基于Linux 平台的手机开源操作系统, 它由操作系统、中间件、用户界面和应用软件组成, 采用了软件堆层架构, 是首个为移动终端打造的真正开放和完整的移动软件。Android的系统架构主要分为四层,从高层到低层分别是应用程序层、应用程序框架层、系统运行库层和linux核心层。其中Android的底层是以开放性的Linux Kernel为其架构,也可以理解为Google推出的手机操作系统和相关软件的总称。Android的系统架构和其操作系统一样,采用了分层的架构。从架构图看,android分为四个层,从高层到低层分别是应用程序层、应用程序框架层、系统运行库层和linux核心层。<<隐藏Android 最大特点在于它是一个开放的体系架构,具有非常好的开发和调试环境,而且还支持各种可扩展的用户体验,Android 里面具有非常丰富的图形系统、对多媒体的支持功能和非常强大的浏览器。