1、 本科毕业设计(论文) 基于基于 Android 平台的平台的 即时通讯系统的研究与设计即时通讯系统的研究与设计 学 院 自动化学院 专 业 网络工程 (网络与信息化方向) 年级班别 2009 级(2)班 学 号 学生姓名 指导教师 2013 年 5 月 基基 于于 A A n n d d r r o o I I d d 平平 台台 的的 即即 时时 通通 讯讯 系系 统统 的的 研研 究究 与与 设设 计计 自自 动动 化化 学学 院院 I 摘摘 要要 随着 Android 系统的发展, 越来越多的移动设备开始使用 Android 作为操作系统。 Android 系统内核基于 Linux 而
2、来,应用层则使用基于 Java 代码的 Dalvik 虚拟机,因 此 Android 代码的主要编程语言是 Java。 即时通讯(Instant Messenger,简称 IM) ,指基于互联网的即时交流信息的业务。 即时通讯是当今互联网用户主要通讯方式之一,能够为互联网用户带来直观、便捷的 信息交换服务。蓝牙,一种支持设备短距离通信的无线电技术,能在包括移动电话、 PDA、无线耳机、笔记本电脑、相关外设等众多设备之间进行无线信息交换。 本文主要对 Android 系统、蓝牙协议进行研究,通过分析 Android 的一个蓝牙即 时通讯实例,达到基于 Android 即时通讯系统的研究目的。在这
3、些研究的基础上,设 计出能够实现 Android 系统上基于蓝牙、能够进行文件发送的即时通讯软件。 首先,本文分析 Android 系统的框架以及功能特征,讲述了 Android 系统的基本 运作方式。其次,讲述了在 Android 系统上如何使用蓝牙协议,研究了 Android 系统 上的蓝牙工作方式以及关键代码。最后,分析蓝牙的工作实例,在此基础上在 Eclipse 开发出能够实现即时通讯的 Android 实例,并且能够传送文件。 关键词:即时通讯; 蓝牙; Android II Abstract With the development of the Android system, m
4、ore and more mobile devices start using Android as the operating system. Android system is based on the Linux kernel and the application layer is using Java-based code Dalvik virtual machine, therefore, the major programming language of Android system is Java. Instant Messenger (Abbreviated IM), ref
5、ers to Internet-based real-time information exchange service. IM is the main way to communicate of Internet users; one can provide Internet users with an intuitive and convenient information exchange service. Bluetooth, one that supports short-range communication device radio technology, can include
6、 mobile phone, PDA, wireless headsets, laptop computers, related peripherals and other wireless information exchange between devices. This paper mainly research on the Android system and the Bluetooth protocol, by analyzing of a Bluetooth Android IM instance, to achieve the purpose of researching Android-based instant messaging system. Design an Android system based on Bluetooth, with the capable of instant messaging and file sendi