登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 电子信息类 > 电子科学与技术 > 正文

基于APP的师生信息互动平台研究与实现毕业论文

 2021-07-13 00:00:19  

摘 要

本次设计主要运用到的是Android开发环境下的Eclipse软件进行开发,用java语言进行代码的编辑工作。

整体设计分不同的模块实现相应的功能,主要功能有:实时消息发送与接收、好友管理和文件管理等。不同的模块下又细分为一些小模块,小模块中需要对界面进行布局,再对源码进行编写。通过不同细化模块和关键代码的编辑,可以得到基本的界面效果。在实时消息管理模块中,服务器采用线程池处理线程,而客户端无需使用线程池,只需通过客户端得到读消息线程和写消息线程即可。服务器和客户端之间的响应是通过超级对象来进行通信的,互相发送超级对象,相当于实现了服务器对于消息的转发。超级对象包含一些可以重复利用的数据如,消息类型、具体的消息对象、发送对象以及接收对象。对于好友分组模块,只需要设计不同的“抽屉”即可,意思就是打开一个抽屉的时候显示抽屉中的内容,同时关闭其他的抽屉。开“抽屉”效果的实现只需要布局三个Text View加上三个Layout 、即可实现。对于文件传输功能,类似于聊天中消息通过服务器的转发过程,是通过用户之间单独建立连接的,当一方要给另一方传送文件时,先通过服务器转发该文件大小、名称等信息,询问对方是否接收文件,如果对方同意接收,即启动一个监听文件传输的Socket,然后再回馈该信息。

设计的关键还在于对服务器和客户端要进行基本的匹配配置,如IP地址和端口配置等,不能疏漏。

关键词:服务器;超级对象;客户端

Abstract

The design uses the Eclipse software under the android developing environment, also,we use java as the programming language to complete the design task.

The whole project is divided into different sections to achieve different functions. There are three major functions: instant message delivering, friend list manager and file manager. However, under the main parts of the project,there are also some branches to complete the whole part of the program.

In theses branches, we need to edit the corresponding code to realize the main functions of the project. For instance,in the message delivering part,the server must load with the multithreading process ,yet the client part does not need so, it takes advantage of the two thread directly to read and write the thread. Nevertheless, the server and the client is connected to each other by sending the hyper object, which is similar to the message delivering part. The hyper object consists of some reused data,such as the type of the object,the message type, the message received object the message sending object etc. As to the friend list part, the“drawer” model is used,which allows one drawer to be opened while others will be closed. The “drawer” model needs three pairs of Text View and layout to achieve the design purpose,which is similar to the transferring process in the message delivering part. The file transferring part is designed to achieve the file send-received process,which uses the same mechanics of the message delivering part. When the file sending request is brought up, we need the receiving object to confirm the process before the process is initiating. While the process begins, the socket must be sent and gives back the feedback.

The significant part of the code should be noticed that ,the IP address and the port setting should be added.

Key Words:server;hyper object;client

目录

第1章 绪论 1

1.1研究背景与意义 1

1.2国内外研究现状 2

1.2.1国外研究现状 2

1.2.2国内研究现状 2

1.3研究目标及内容 2

1.4拟采用的实现方案及措施 3

第2章 android开发环境的搭建 4

2.1 JDK和SDK的安装及配置 4

2.2环境变量的配置 4

2.3 虚拟机的配置 7

第3章 登录功能的实现 10

3.1登录页面的基本布局 10

3.2登陆页面的代码调试 11

3.3 登录页面的拓展菜单 12

3.4登录页面的呈现 13

3.5 登陆功能的核心代码 14

第4章 实时消息界面的布局 15

4.1服务器与客户端 15

4.1.1服务器的基本配置工作 15

4.1.2 客户端的基本配置工作 16

4.2消息界面的基本布局 16

4.2.1消息界面样式的基本布局 16

4.2.2 消息内容样式的基本布局 16

4.2.3 实时消息内容布局的细分 17

4.3实时消息界面的呈现 18

第5章 实时收发消息功能的实现 19

5.1 线程与线程池 19

5.2服务器对线程池的利用 19

5.2.1服务器读消息线程 19

5.2.2服务器写消息线程 20

5.3客户端与服务器之间的相应 20

5.3.1客户端写消息线程 20

5.3.2客户端读消息线程 20

5.4实时消息发送的关键 21

第6章 好友管理及文件传输 22

6.1 好友分组列表的基本布局 22

6.2 好友列表嵌套的实现 23

6.3 分组好友的基本实现 24

6.4分组好友抽屉原理的源码设置 24

6.5文件传输三部曲 24

6.6 文件传输请求 25

6.7 传输完毕 26

第7章 结论 27

参考文献 28

致 谢 29

第1章 绪论

1.1研究背景与意义

本次毕业设计的宗旨是设计出一个便于师生在课堂外交流互动的平台,而在当前教育市场的方向下,需要促进师生信息的良好交流传递,这种传递将不分课堂内外,同时促进课堂外师生交流的良好发展趋势的延续,以帮助学生增强课内文化知识和促进师生感情交流为最终目的。围绕师生互动来探索线下师生交流方式的便利性,并以此来更新促进师生感情和学术知识上的交流。而师生线下交流互动平台的建立,具有以下三种重要的意义:

一、学习意义及价值互动,实现师生学习意义及学习价值的互动,需要我们督促同学提高对自身的要求,自己的学术与科研水平更加完善,需要更加全面、更加准确而且正确地认识学习的使命与初衷;另外,即时高效的互动存在于师生相互间。对于模式化的传统课堂教学中,多数情况下师生之间一对一的问答,充当了主要的课堂互动角色。而这种模式的互动次数有限,覆盖面狭窄,学生的参与率低下, 师生互动低效, 造成教与学的脱节。如果借助一个专门的互动平台工具,每个班级建立自己的交流平台,教师可把教学课件、视频、教学方案、作业分享到平台上,学生可在课前课后在班级平台中留言互动, 解决疑问, 交流心得,即时反馈。师生互动突破课堂时间与空间的限制,实现自由高效互动。

您需要先支付 50元 才能查看全部内容!立即支付

微信号:bysjorg

Copyright © 2010-2022 毕业论文网 站点地图