freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

基于android的無線手機助手_畢業(yè)設(shè)計(論文)開題報告-文庫吧資料

2025-07-12 11:25本頁面
  

【正文】 knows where it is. See Chapter 8, Locating and Sensing, on page 161. ? Notification manager: Events such as arriving messages, appointments, proximity alerts, alien invasions, and more can be presented in an unobtrusive fashion to the user. Applications and Widgets The highest layer in the Android architecture diagram is the Applications and Widgets layer. Think of this as the tip of the Android iceberg. End users will see only these programs, blissfully unaware of all the action going on below the waterline. As an Android developer, however, you know better. Applications are programs that can take over the whole screen and interact with the user. On the other hand, widgets (which are sometimes called gadgets), operate only in a small rectangle of the Home screen application. The majority of this book will cover application development, because that’s what most of you will be writing. Widget development is covered in Chapter 12, There’s No Place Like Home, on page 233. When someone buys an Android phone, it will e prepackaged with a number of 浙江大學(xué)城市學(xué)院畢業(yè)論文 外文翻譯 25 standard system applications, including the following: ? Phone dialer ? Email ? Contacts ? Web browser ? Android Market Using the Android Market, the user will be able to download new programs to run on their phone. That’s where you e in. By the time you finish this book, you’ll be able to write your own killer applications for Android. Now let’s take a closer look at the life cycle of an Android application. It’s a little different from what you’re used to seeing. It’s Alive! On your standard Linux or Windows desktop, you can have many applications running and visible at once in different windows. One of the windows has keyboard focus, but otherwise all the programs are equal. You can easily switch between them, but it’s your responsibility as the user to move the windows around so you can see what you’re doing and close programs you don’t need. Android doesn’t work that way. In Android, there is one foreground application, which typically takes over the whole display except for the status line. When the user turns on their phone, the first application they see is the Home application (see Figure , on the next page). When the user runs an application, Android starts it and brings it to the foreground. From that application, the user might invoke another application, or another screen in the same application, and then another and another. All these programs and screens are recorded on the application stack by the system’s Activity Manager. At any time, the user can press the Back button to return to the previous screen on the stack. From the user’s point of view, it works a lot like the history in a web browser. Pressing Back returns them to the previous page. Process != Application Internally, each user interface screen is represented by an Activity class (see Section , Activities, on page 39). Each activity has its own life cycle. An application is one or 浙江大學(xué)城市學(xué)院畢業(yè)論文 外文翻譯 26 more activities plus a Linux process to contain them. That sounds pretty straightforward, doesn’t it? But don’t get fortable yet。任何要使用聯(lián)系人信息的應(yīng)用程序都可共享其中的所有信息,包括姓名、地址、電話號碼等。這是在應(yīng)用程序之間共享全局?jǐn)?shù)據(jù)的最佳方式。Android 內(nèi)置了許多服務(wù),以及許多可輕松訪問這些服務(wù)的 API。所以,執(zhí)行音樂播放的代碼應(yīng)該在某個服務(wù)中。例如,假設(shè)有一個音樂播放器。下次其他人嘗試發(fā)送電子郵浙江大學(xué)城市學(xué)院畢業(yè)論文 外文翻譯 21 件時,他們會使用你的電子郵件程序,而不是標(biāo)準(zhǔn)的郵件程序。如果應(yīng)用程序需要發(fā)送郵件,就可調(diào)用該意圖。 節(jié)提供了一個意圖的示例。 節(jié)提供了一個示例。應(yīng)用程序可以定義一個或多個活動,以處理程序不同階段中的任務(wù)。本書的其余部分提供了關(guān)于這些對象的多個實例,所以現(xiàn)在先簡要介紹一下他們。 構(gòu)建塊 每位開發(fā)人員都要熟悉 Android SDK 中定 義的一些對象。 除了管理應(yīng)用程序的生命周期, Android 框架還提供了很多構(gòu)建塊,開發(fā)人員可使用這些構(gòu)件塊創(chuàng)建應(yīng)用程序。這是經(jīng)常出現(xiàn)的情況,所以在一開始設(shè)計應(yīng)用程序時就記住這一點很重要。默認(rèn)實現(xiàn)會還 原用戶界面的狀態(tài)。 onRestoreInstanceState( Bundle)。通常你無需重寫該方法,因為該方法的實現(xiàn)會自動保存所有用戶界面控件的狀態(tài)。 onSaveInstanceState( Bundle)。如果內(nèi)存不足,可能永遠(yuǎn)都不會調(diào)用 onDestroy()(系統(tǒng)可能只是終止進程)。 onDestroy()。如果調(diào)用該方法,則表明要將已處于停止?fàn)顟B(tài)的活動重新顯示給浙江大學(xué)城市學(xué)院畢業(yè)論文 外文翻譯 20 用戶。 用戶無需看到某個活動,或者在一段時間內(nèi)不需要某個活動時,可以調(diào)用該方法。 還應(yīng)該在該方法中保存程序的持久狀態(tài)。 onPause()。這個方法非常適合開始播放動畫和音樂。 onResume()。該方法說明了將要顯示給用戶的活動。 可使用該方法執(zhí)行一次性的初始化工作,如創(chuàng)建用戶界面。 onCreate(Bundle)。你需要在 Activity 類中重寫這些方法,而Android 會在合適的時間調(diào)用下面這些方法。開發(fā)人員不能控制程 序處于哪個狀態(tài),這是由系統(tǒng)管理的。從用戶的角度看,這種工作方式類似于 Web瀏覽器中的歷史功能,即按 Back 返回到上一個頁面。所有這些程序和窗口都被系統(tǒng)的活動管理器李璐在應(yīng)用程序棧中。 用戶在運行應(yīng)用程序時, Android 會啟動該程序并將他至于前臺。這個程序通常會顯示時間、背景圖像。 Android 中有一個前臺應(yīng)用程序,它通常為占據(jù)狀態(tài)欄以外的所有將屏幕空間。 用戶可以輕松地在這些程序之間切換,但是要想知道自己在做什么,或者想要關(guān)浙江大學(xué)城市學(xué)院畢業(yè)論文 外文翻譯 19 閉不再需要的程序,用戶必須親自動手。 它還活著 標(biāo)準(zhǔn)的 Linux 或 Windows 桌面可以同時運行許多應(yīng)用程序,并且可以在不同的窗口中同時看到這些程序。這里也將是你大顯身手的地方,學(xué)習(xí)完本書后,你也能夠為 Android 編寫出令人一見鐘情的應(yīng)用程序。 Android Market。聯(lián)系人管理程序; 電話撥號程序; 但是作 為一名 Android 開發(fā)人員,你應(yīng)該知道這些操作??蓪⒃搶酉胂鬄楦〕龊C娴?Android 冰山的一角。像收到短信、臨近預(yù)約時間、臨界狀態(tài)報警、異常入侵等事件都可以通過友好的方式通知用戶。 Android 手機始終知道目前所處的位置。 資源是程序中涉及到任何非代碼內(nèi)容。 這些對象封轉(zhuǎn)需要在應(yīng)用程序之間共享的數(shù)據(jù),如聯(lián)系人信息。 活動管理器。 該框架最重要的部分包括下面 5 個。該成提供了在創(chuàng)建應(yīng)用程序時浙江大學(xué)城市學(xué)院畢業(yè)論文 外文翻譯 18 需要使用的各種高級構(gòu)建塊。附錄 A 比較了 Android 庫與 Java 標(biāo)準(zhǔn)庫。 Android 附帶的 Java 核心庫與 Java SE 庫和 Java ME 庫不同。 .dex 文件比類文件更加緊湊并且更加高效,這是針對運行 Android 的設(shè)備內(nèi)存有限且通過電池供電的特點所作出的重要 改進。 為 Android編寫的所有代碼使用的都是 Java 語言,這些代碼都在虛擬機中運行。 Android 運行時 在 Linux 內(nèi)核層上面還有一個 Android 運行時層,改成包括 Dalvik 虛擬機以及 Java核心庫。GoogleChrome 瀏覽器、蘋果的 Safari 瀏覽器、蘋果 iPhone 和諾基亞的 S60 平臺都是用了該引擎。瀏覽器引擎。參見第 9章中相關(guān)的示例。 Android 提供了輕量級的 SQLite 數(shù)據(jù)庫引擎, Firefox 和蘋果的iPhone 中使用的也是該數(shù)據(jù)庫引擎。 Android 可播放視頻內(nèi)容,并可用各種格式錄制和播放音頻,這些格式包括 AAC、 AVC( )、 、 MP3 和 MPEG4。 庫將使用 3D 硬件(如果設(shè)備上有的話)或者快速軟件渲染器(如果沒有 3D 硬件設(shè)備)。 2D 和 3D圖形。這種方法允許系統(tǒng)實現(xiàn)所有有趣的效果,如透明的窗口和奇特的過渡效果。 Android 使用與 Vista 或 Compiz 類似的組合窗口管理器,但是它要更簡單一些。 浙江大學(xué)城市學(xué)院畢業(yè)論文 外文翻譯 17 這些共享庫都是用 C 或 C++語言便攜帶,并且針對電話使用的特定硬件架構(gòu)進行了編譯,并已由手機制造商預(yù)先安裝到手機中。例如,可以通過這個命令行窗口來檢查 Linux 文件系統(tǒng)、查看活動的進程等。 開發(fā)期間需要的某些實用程序
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1