【正文】
return (menu)。 } Override protected void onResume() { (this, name, 1000).show()。 Cursor cursor = (name)。 ()。 private BranchDBHelper dbHelper。 結(jié)果頁面代碼如下: public class BranchResultActivity extends Activity { private ListView lv16。 } return (item)。 break。 return (menu)。 (new OnClickListener() { Override public void onClick(View v) { ().k1401()。//到 期日期 (str[3],((i).getStageDate().getTime()+30*60*24*60))。//時間 (str[0],((i).getStageDate()))。 for(int i = 0。//會員可用里程 (()+)。 btn_01=(Button)findViewById()。 lv = (ListView)findViewById()。 private String[] str = {時間 ,事由 ,里程 ,到期日 期 }。 private TextView tv_02。 } } 會員里程查詢結(jié)果 如果會員登錄成功,系統(tǒng)會根據(jù)發(fā)送的請求作出相應(yīng)的響應(yīng)( Response),返回需要查詢的數(shù)據(jù)。 (MemberMileageResult, (Mileages))。 (MembCardPass, password)。 圖 4:會員里程查詢界面 會員里程查詢 當(dāng)用戶登錄成功,根據(jù)通訊協(xié)議的設(shè)計,客戶端會調(diào)用 ClientServiceImplForNet 中的findMemberMileage()方法發(fā)送請求( Request)編碼 FIND_MEMBER_MILEAGE_REQUEST,同時將用戶輸入的 memberCard, password 傳給服務(wù)器,服務(wù)器根據(jù)傳入的請求作出相應(yīng)的響應(yīng)( Response)。 代理商 123, 39。 39。,39。,39。Y39。Y39。F39。F39。Y39。在 C/S 系統(tǒng)中,客戶應(yīng)用程序的主要任務(wù)是:提供良好的用戶界面,方便用戶使用, Android 平臺自身提供的組件能很好的實(shí)現(xiàn)這幾點(diǎn);按規(guī)定的格式彈出數(shù)據(jù)的表格與圖形;按應(yīng)用邏輯要求對數(shù)據(jù)條目進(jìn)行計算和驗(yàn)證;以及向數(shù)據(jù)庫服務(wù)器提交請求和接收來自服務(wù)器的信息。如安全地、快速地對公用信息數(shù)據(jù)庫進(jìn)行并發(fā)存??;使用備份和恢復(fù)功能保護(hù)數(shù)據(jù)庫信息;對所有的客戶應(yīng)用程序集中實(shí)施全局的數(shù)據(jù)完整性規(guī)則等??删徒? 咨詢或取票。 Broadcast Receiver Broadcast Receiver 是為了實(shí)現(xiàn)系統(tǒng)廣播而提供的一種組件。當(dāng)連接到一個 service 之后,我們還可以用 service 提供的接口與它進(jìn)行通訊。然而,音樂重放這個功能并沒有對應(yīng)的 activity,因?yàn)槭褂谜弋?dāng)然會認(rèn)為在導(dǎo)航到其它屏幕時音樂應(yīng)該還在播放的。默認(rèn)情況下, Android 會保留從主屏幕到每一個應(yīng)用程序的運(yùn)行屏幕。 通過調(diào)用 startActivity()方法可以從一個屏幕導(dǎo)航到另一個屏幕,打開 Activity 的條件被封裝在 Intent 中。 Android 還定義了 View 類來顯示可視化界面,例如菜單、對話框、下拉表等。 Linux 同時也作為硬件和軟件堆棧之間的硬件抽象層。 Dalvik 虛擬機(jī)執(zhí)行 .dex 的 Dalvik可執(zhí)行文件,該格式針對最小內(nèi)存使用做了優(yōu)化。 7) FreeType:位圖( bitmap)和向量( vector)字體顯示 。 3) Surface Manager:對顯示子系統(tǒng)的管理,并且為多個應(yīng)用程序提供 2D 和 3D 圖層的無縫融合。 Android程序庫 Android 包括一個被 Android 系統(tǒng)中各種不同組件所使用的 C/C++庫集。 2) 內(nèi)容管理器( Content Providers)使得應(yīng)用程序可以訪問另一個應(yīng)用程序的數(shù)據(jù)(如聯(lián)系人數(shù)據(jù)庫),或者共享他們自己的數(shù)據(jù)。 應(yīng)用程序框架 開發(fā)者完全可以訪問核心應(yīng)用程序所使用的 API 框架。 四川大學(xué)錦城學(xué)院本科畢業(yè)論文 基于 Android 手機(jī)平臺的 3G 航空訂票系統(tǒng) 3 Android 平臺架構(gòu) 如圖 1 所示的就是 Android 操作系統(tǒng)的體結(jié)構(gòu),從中可以看出 Android 操作系統(tǒng)體系結(jié)構(gòu)分為 4 層,由上而下依次是應(yīng)用程序、應(yīng)用程序框架、核心類庫和 Linux 內(nèi)核。 3G( 3rdgeneration)第三代移動通信技術(shù),是指支持高速數(shù)據(jù)傳輸?shù)姆涓C移動通訊技術(shù)。 多媒體支持:支持包括 常見的音頻、視頻和靜態(tài)印象文件格式(如 MPEG 、MP AAC、 AMR、 JPG、 PNG、 GIF)。 優(yōu)化的圖形庫:包括 2D 和 3D 圖形庫, 3D 圖形庫基于 OpenGL 。這意味著我們可以把系統(tǒng)中不喜歡的應(yīng)用程序替換掉,安裝我們自己喜歡的應(yīng)用程序,例如打電話程序、文件管理器等。 2 Android 的架構(gòu)分析 Android 是一個移動設(shè)備的軟件平臺,采用了整合的策略思想,包括底層 Linux 操作系統(tǒng)、中間層得中間件和上層的 Java 應(yīng)用程序,它提供包括 SDK、 Key Apps、 Middleware、四川大學(xué)錦城學(xué)院本科畢業(yè)論文 基于 Android 手機(jī)平臺的 3G 航空訂票系統(tǒng) 2 Linux Kernel 四個部分在內(nèi)的全套手機(jī)軟件方案,它開放了基于 Linux 內(nèi)核以上的開發(fā)工具,從而保證了內(nèi)容的可移植性和多樣性。 (7) 提供訂閱功能:用戶能根據(jù)自身需要訂閱一些航空公司服務(wù)。 (2) 提供訂單管理功能:能夠?qū)τ脩羲啓C(jī)票進(jìn)行管理。特別是在旅行旺季的時候,往往需要排著長長的隊(duì)伍等候,有時候甚至無功而返,浪費(fèi)了人們大量的時間,給旅客帶來了很大的不便。經(jīng)多次實(shí)踐證明,該系統(tǒng)界面美觀,操作便捷,功能完備,實(shí)用性強(qiáng),在實(shí)際中可以投入使用。如今 Android 操作系統(tǒng)的使用越來越廣泛,已經(jīng)和 ios不相上下。在此背景下,本文使用 Java編程語言,結(jié)合 Android手機(jī)平臺環(huán)境開發(fā)了一個3G航空訂票系統(tǒng)。 關(guān)鍵詞: Android 3G Java 航空訂票系統(tǒng) 四川大學(xué)錦城學(xué)院本科畢業(yè)論文 基于 Android 手機(jī)平臺的 3G 航空訂票系統(tǒng) II The 3G mobile platform based on Android airline reservation systems Major: 這 寫 專業(yè) ( 這寫 方向) Student: Deng Qinsheng Supervisor: Zhou Hong Abstract Due to the restrictions of time, space, the traditional booking way already far from meeting the needs of the market urgently needed public, a fast and convenient way of trading inquires. Now Android operating system, has been more widespread use of neckandneck with ios. In this background, this paper use Java programming language, bined with Android mobile platform environment developed a 3G airline reservation system. The system achieved flight inquiry, airtickets, order management, order payment, work inquiry, member mileage inquiry, dynamic flight inquiry, subscribe to news and other functions, a more prehensive covers the airline reservation about all the business requirements. Through this system, users can directly through mobile phones or the Inter this and other smart mobile devices to access database anywhere at any time, plete airline reservation, inquiry and tell the operation to counter trade, consulting trouble. After repeated practice proved that this system interface aesthetics, convenient operation, function plete, practical strong, can be put into use in practice. Key words: Android 3G Java Airline Reservation System 四川大學(xué)錦城學(xué)院本科畢業(yè)論文 基于 Android 手機(jī)平臺的 3G 航空訂票系統(tǒng) III 目 錄 1 導(dǎo) 論 ............................................................................................................................................ 1 選題目的及意義 ................................................................................................................ 1 選題背景 ................................................................................................................. 1 系統(tǒng)設(shè)計目標(biāo) ......................................................................................................... 1 論文思路與結(jié)構(gòu) ..................................................................................................... 1 2 Android 的架構(gòu)分析 .................................................................................................................... 1 Android 特性 ..................................................................................................................... 2 Android 平臺架構(gòu) ............................................................................................................. 3 應(yīng)用程序 ................................................................................................................. 3 應(yīng)用程序框架 ......................................................................................................... 3