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

正文內容

基于android的無線手機助手畢業(yè)設計論文開題報告(編輯修改稿)

2025-07-23 13:30 本頁面
 

【文章內容簡介】 Java ME庫不同。但是,他們之間有很大部分還是相同的。附錄A比較了Android庫與Java標準庫。 應用程序框架位于本機類庫和運行時上面的是應用程序框架層。該成提供了在創(chuàng)建應用程序時需要使用的各種高級構建塊。該框架已隨Android一同安裝,但開發(fā)人員也可以根據需要使用自己的組件擴展該框架。該框架最重要的部分包括下面5個?;顒庸芾砥?。該管理器控制應用程序的生命周期(),同時維護一個公告的“后退棧”供用戶導航。內容提供者。這些對象封轉需要在應用程序之間共享的數據,如聯(lián)系人信息。資源管理器。資源是程序中涉及到任何非代碼內容。位置管理器。Android手機始終知道目前所處的位置。參見第8章。通知管理器。像收到短信、臨近預約時間、臨界狀態(tài)報警、異常入侵等事件都可以通過友好的方式通知用戶。 應用程序Android架構圖中的最高層是應用程序層??蓪⒃搶酉胂鬄楦〕龊C娴腁ndroid冰山的一角。最終用戶只能看到這些應用程序,根本不會覺察到在該層下面執(zhí)行的操作。但是作為一名Android開發(fā)人員,你應該知道這些操作。購置Android手機時,手機中會預裝一些標準的系統(tǒng)應用程序,包括:電話撥號程序;電子郵件收發(fā)程序;聯(lián)系人管理程序;Web瀏覽器;Android Market。用戶可以從Android Market下載在本機運行的新應用程序。這里也將是你大顯身手的地方,學習完本書后,你也能夠為Android編寫出令人一見鐘情的應用程序?,F在,讓我們仔細地了解一下Android應用程序生命周期,它與你以前熟悉的概念有所不同。 它還活著標準的Linux或Windows桌面可以同時運行許多應用程序,并且可以在不同的窗口中同時看到這些程序。除了其中某個程序擁有鍵盤焦點外,所有程序都是平等的。用戶可以輕松地在這些程序之間切換,但是要想知道自己在做什么,或者想要關閉不再需要的程序,用戶必須親自動手。Android不是這樣管理窗口的。Android中有一個前臺應用程序,它通常為占據狀態(tài)欄以外的所有將屏幕空間。用戶開機時,他們看到的第一個應用程序是Home應用程序(參見圖22)。這個程序通常會顯示時間、背景圖像。以及一個滾動列表,其中包含用戶可以打開的其他應用程序。用戶在運行應用程序時,Android會啟動該程序并將他至于前臺。用戶可以從該應用程序中打開其他應用程序,或者打開同一應用程序的其他窗口,然后再調用其他應用程序。所有這些程序和窗口都被系統(tǒng)的活動管理器李璐在應用程序棧中。用戶可隨時按Back按鈕返回到棧中的上一個窗口。從用戶的角度看,這種工作方式類似于Web瀏覽器中的歷史功能,即按Back返回到上一個頁面。 應用程序生命周期Android程序中的每個活動在其存在期間都會處于以下多種狀態(tài)之一,如圖23所示。開發(fā)人員不能控制程序處于哪個狀態(tài),這是由系統(tǒng)管理的。但是通過onXX()方法調用改變狀態(tài)時,系統(tǒng)會通知開發(fā)人員。你需要在Activity類中重寫這些方法,而Android會在合適的時間調用下面這些方法。onCreate(Bundle)。首次啟動活動時會調用該方法??墒褂迷摲椒▓?zhí)行一次性的初始化工作,如創(chuàng)建用戶界面。onCreate()接受一個參數,可以是null或由onSaveInstanceState()方法以前保存的某些狀態(tài)信息。onStart()。該方法說明了將要顯示給用戶的活動。onResume()。用戶可以開始與活動進行交互時會調用該方法。這個方法非常適合開始播放動畫和音樂。onPause()?;顒訉⒁M入后臺時會運行該方法,活動進入后臺的原因通常是在前臺啟動了另一個活動。還應該在該方法中保存程序的持久狀態(tài)。如正在編輯的數據庫記錄。onStop()。用戶無需看到某個活動,或者在一段時間內不需要某個活動時,可以調用該方法。如果內存不足,可能永遠都不會調用onStop()(系統(tǒng)可能只是終止進程)。onRestart()。如果調用該方法,則表明要將已處于停止狀態(tài)的活動重新顯示給用戶。onDestroy()。銷毀活動前會調用該方法。如果內存不足,可能永遠都不會調用onDestroy()(系統(tǒng)可能只是終止進程)。onSaveInstanceState(Bundle)。Android調用該方法的作用是讓活動可以保存每個實例的狀態(tài),如光標在文本字段中的位置。通常你無需重寫該方法,因為該方法的實現會自動保存所有用戶界面控件的狀態(tài)。onRestoreInstanceState(Bundle)。使用onSaveInstanceState()方法以前保存的狀態(tài)重新初始化某個活動時會調用該方法。默認實現會還原用戶界面的狀態(tài)。沒有在前臺中運行的活動可能已被停止,或者是容納這些活動的Linux進程已被“殺死”(結束),從而為新的活動騰出空間。這是經常出現的情況,所以在一開始設計應用程序時就記住這一點很重要。在某些情況下,onPause()方法可能是活動者調用的最后一個方法,所以才應在該方法中保存下次要繼續(xù)使用的任何數據。除了管理應用程序的生命周期,Android框架還提供了很多構建塊,開發(fā)人員可使用這些構件塊創(chuàng)建應用程序。下面仔細了解這些構建塊。 構建塊每位開發(fā)人員都要熟悉Android SDK中定義的一些對象。其中最為重要的就是活動、意圖、服務和內容提供者。本書的其余部分提供了關于這些對象的多個實例,所以現在先簡要介紹一下他們。一個活動就是一個用戶界面屏幕。應用程序可以定義一個或多個活動,以處理程序不同階段中的任務。,作為應用程序生命周期的一部分,每個活動都要保存自己的狀態(tài),以便日后還原這些狀態(tài)。 意圖意圖是一種描述具體動作的機制,例如“拍照”、“往家中撥電話”或“打開倉門”在Android中,幾乎所有事情都要經歷意圖這個階段,所以有很多機會可以替換或重用很多組件。例如,現在有一個“發(fā)送一封電子郵件”的意圖。如果應用程序需要發(fā)送郵件,就可調用該意圖?;蛘吣阏诰帉懸粋€新的電子郵件應用程序,就可注冊一個活動來處理該意圖,并用該電子郵件程序替換標準的郵件程序。下次其他人嘗試發(fā)送電子郵件時,他們會使用你的電子郵件程序,而不是標準的郵件程序。 服務服務是在后臺運行的任務,無需用戶直接與其交互,它與Unix的守護進程類似。例如,假設有一個音樂播放器??梢酝ㄟ^某個活動來播放音樂,但是我們希望即使當用戶使用其他程序時,人能繼續(xù)播放音樂。所以,執(zhí)行音樂播放的代碼應該在某個服務中。之后,另一個活動可能會綁定到該服務上,告訴該服務切換音軌或停止播放。Android內置了許多服務,以及許多可輕松訪問這些服務的API。 內容提供者內容提供者是封裝在自定義API中的一組數據,可以讀取該數據和向API中寫入數據。這是在應用程序之間共享全局數據的最佳方式。例如,谷歌為聯(lián)系人程序提供了一個內容提供者。任何要使用聯(lián)系人信息的應用程序都可共享其中的所有信息,包括姓名、地址、電話號碼等。 Android Key ConceptsNow that you have an idea of what Android is, let’s take a look at how it works. Some parts of Android may be familiar, such as the Linux kernel,OpenGL, and the SQL database. Others will be pletely foreign,such as Android’s idea of the application life ’ll need a good understanding of these key concepts in order to writewellbehaved Android applications, so if you read only one chapter in this book, read this one. The Big Picture Let’s start by taking a look at the overall system architecture—the key layers and ponents that make up the Android open source software stack. In Figure , on the next page, you can see the “20,000foot”view of Android. Study it closely—there will be a test layer uses the services provided by the layers below it. Starting from the bottom, the following sections highlight the layers provided by Android.Linux KernelAndroid is built on top of a solid and proven foundation: the Linux kernel. Created by Linus Torvalds in 1991, Linux can be found today in everything from wristwatches to superputers. Linux provides the hardware abstraction layer for Android, allowing Android to be ported to a wide variety of platforms in the future. Internally, Android uses Linux for its memory management, process management, networking, and other operating system services. The Android phone user will never see Linux, and your programs will not make Linux calls directly. As a developer, though, you’ll need to be aware it’s there.Some utilities you need during development interact with Linux. For example, the adb shell mand1 will open a Linux shell in which you can enter other mands to run on the device. From there you can examine the Linux file system, view active processes, and so forth, subject to security restrictions.Native LibrariesThe next layer above the kernel contains the Android native shared libraries are all written in C or C++, piled for the particular hardware architecture used by the phone, and preinstalled by the phone vendor.Some of the most important native libraries include the following:? Surface Manager: Android uses a positing window manager similar to Vista or Compiz, but it’s much simpler. Instead of drawing directly to the screen buffer, your drawing mands go into offscreen bitmaps that are then bined with other bitmaps to form the display the user sees. This lets the system create all sorts of interesting effects such as seethrough windows and fancy transitions.? 2D and 3D graphics: Two and threedimensional elements can be bined in a single user interface with Android. The library will use 3D hardware if the device has it or a fast software renderer if it doesn’t. See Chapter 4, Exploring 2D Graphics, on page 73 and Chapter 10, 3D Graphics in OpenGL, on page 198.? Media codecs: A
點擊復制文檔內容
化學相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1