【正文】
present, IM software centralizes under the MS Window platform on the whole, not taking int account the need of users who apply intelligence support facility。 1 摘 要 Inter 的出現(xiàn),不僅為人類提供了信息交流的新技術(shù)、新方法和新媒體,而且為人類提供了新的開放式的交流平臺(tái),開創(chuàng)了新的生活方式。 Second: All kinds of business software make use of each private protocol, so as not to 3 munication among them, and this bring it inconvenience in the spread of application. So if work IM is imported Android and settle intermunication of them, not only this makes up for lack of inter applications on Android, but also boostes the spread of Android and IM software. Over analysis and inverstigation of IM model, constrast with a few of prevalent protocols, The author decides to apply Http based on XML, puts forward a good expansibility of work software frame, make choice of munication mode、 connect mode and serve mode. Keywords: Instant message、 Android、 XML 4 目 錄 摘 要 ............................................................................................................................. 1 Abstract ............................................................................................................................ 2 第一章 緒 論 ................................................................................................................. 5 即時(shí)通訊的概念 ............................................................................................... 5 即時(shí)通訊的國(guó)內(nèi)外發(fā)展?fàn)顩r ............................................................................ 6 課題研究?jī)?nèi)容 ................................................................................................... 7 第二章 即時(shí)通訊系統(tǒng)分析與設(shè)計(jì) ................................................................................. 8 需求分析 .......................................................................................................... 9 功能需求 ............................................................................................... 9 概要設(shè)計(jì) ........................................................................................................ 11 系統(tǒng)框架設(shè)計(jì) ...................................................................................... 11 功能設(shè)計(jì) ............................................................................................. 13 數(shù)據(jù)庫設(shè)計(jì) .................................................................................................... 17 第三章 系統(tǒng)客戶端、服務(wù)器開發(fā)平臺(tái)搭建 ................................................................ 19 系統(tǒng)客戶端開發(fā)平臺(tái)搭建 .............................................................................. 19 開發(fā) Android 程序軟件需求 ............................................................... 19 開發(fā) Android 程序硬件最低需求 ....................................................... 19 JDK 的安裝 .......................................................................................... 19 Android 開發(fā)環(huán)境的安裝 .................................................................... 21 安裝 Eclipse 插件 ADT ....................................................................... 23 系統(tǒng)服務(wù)器開發(fā)平臺(tái)搭建 .............................................................................. 24 第四章 系統(tǒng)客戶端設(shè)計(jì)與實(shí)現(xiàn) ................................................................................... 25 Android 系統(tǒng)簡(jiǎn)介 .......................................................................................... 25 客戶端使用到的接口介紹 .............................................................................. 28 客戶端實(shí)現(xiàn) .................................................................................................... 31 用戶注冊(cè)模塊實(shí)現(xiàn) .............................................................................. 31 用戶登錄模塊實(shí)現(xiàn) .............................................................................. 33 刷新好友列表模塊 實(shí)現(xiàn) ....................................................................... 34 好友管理模塊實(shí)現(xiàn) .............................................................................. 35 用戶查詢模塊實(shí)現(xiàn) .............................................................................. 39 聊天模塊實(shí)現(xiàn) ...................................................................................... 40 第五章 系統(tǒng)服務(wù)器設(shè)計(jì)與實(shí)現(xiàn) ................................................................................... 42 Google App Engine 簡(jiǎn)介 ............................................................................... 42 服務(wù)器端實(shí)現(xiàn) ................................................................................................ 43 服務(wù)器用戶注冊(cè) .................................................................................. 43 服務(wù)器用戶登錄 .................................................................................. 44 服務(wù)器在線服務(wù) .................................................................................. 46 服務(wù)器運(yùn)行截圖 ............................................................................................. 51 第六章 結(jié) 論 ............................................................................................................... 54 致 謝 ........................................................................................................................ 55 5 參考文獻(xiàn): ................................................................................................................... 55 第一章 緒 論 即時(shí)通訊的概念 即時(shí)通訊( Instant Messenger,簡(jiǎn)稱 IM),是指能夠即時(shí)發(fā)送和接收互聯(lián)網(wǎng) 消息等的業(yè)務(wù)。大凡人們都有渴望社交、獲得社會(huì)尊重、實(shí)現(xiàn)自我的需求,這正是即時(shí)通訊軟件風(fēng)行的驅(qū)動(dòng)力。 縱觀即時(shí)通訊軟件業(yè)的迅速發(fā)展,設(shè)計(jì)并開發(fā)一個(gè)即時(shí)通訊平臺(tái),對(duì)于現(xiàn)階段 的學(xué)習(xí)和研究,都是 極為有意義的,基于這個(gè)前提和起因,我選擇了 即時(shí)通訊 作為研究方向 。即時(shí)通訊服務(wù)在誕生之后的幾年時(shí)間得到了迅猛發(fā)展,成為新增Inter 用戶的 3 個(gè)主要應(yīng)用之一 (WEB,電子郵件和即時(shí)通訊 )。 中國(guó)政府積極推進(jìn)企業(yè)信息化應(yīng)用的發(fā)展。 課題研究?jī)?nèi)容 通過以上對(duì)即時(shí)通訊軟件發(fā)展?fàn)顩r的 分析 ,再加上國(guó)內(nèi) 3G 時(shí)代的到來,互聯(lián)網(wǎng)速度的飆升,開發(fā)一款簡(jiǎn)單實(shí)用大眾化地即時(shí)通訊產(chǎn)品在后 PC 時(shí)代的信息產(chǎn)業(yè)領(lǐng)域具有旺盛的生命力。 刷新好友列表如圖 23: 用 戶刷 新 好 友 列 表 圖 213 刷新好友列表用例圖 好友管理 在好友管理中,用戶可以選擇添加其他用戶為其好友,待對(duì)方接受之后就完成添加好友。由于 HTTP 能夠滿足 WWW系統(tǒng)客戶與服務(wù)器通信的需要 ,從而成為 WWW 發(fā)