




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、畢業(yè)設(shè)計(jì)(論文)外文翻譯 院(系) 計(jì)算機(jī)科學(xué)與工程學(xué)院 專 業(yè) 計(jì)算機(jī)科學(xué)與技術(shù) 班 級(jí) 070610班 姓 名 曾 文 娟 學(xué) 號(hào) 070610331 導(dǎo) 師 潘 煜 2011年 5 月 8 日android introduction and development environment constructionthis barrier to application development began to crumble in november of 2007 when google, under the open handset alliance, released android.
2、 the open handset alliance is a group of hardware and software developers, including google, ntt docomo,sprint nextel, and htc, whose goal is to create a more open cell phone environment.the first product to be released under the alliance is the mobile device operating system, android.android, as a
3、system, is a java-based operating system that runs on the linux 2.6 kernel.the system is very lightweight and full featured.android applications are developed using java and can be ported rather easily to the new platform.one of the more exciting and compelling features of android is that, because o
4、f its architecture, third-party applicationsincluding those that are “home grown”are executed with the same system priority as those that are bundled with the core system.this is a major departure from most systems, which give embedded system apps a greater execution priority than the thread priorit
5、y available to apps created by third-party developers. also, each application is executed within its own thread using a very lightweight virtual machine.aside from the very generous sdk and the well-formed libraries that are available to us to develop with, the most exciting feature for android deve
6、lopers is that we now have access to anything the operating system has access to. in other words, if you want to create an application that dials the phone, you have access to the phones dialer; if you want to create an application that utilizes the phones internal gps (if equipped), you have access
7、 to it. the potential for developers to create dynamic and intriguing applications is now wide open.on top of all the features that are available from the android side of the equation,google has thrown in some very tantalizing features of its own. developers of android applications will be able to t
8、ie their applications into existing google offerings such as google maps and the omnipresent google search. suppose you want to write an application that pulls up a google map of where an incoming call is emanating from,or you want to be able to store common search results with your contacts; the do
9、ors of possibility have been flung wide open with android.now begins your journey to android development.1、downloading and installing eclipse(1) selecting a development environment in keeping with the open handset alliances theme of truly opening the mobile development market, eclipse is one of the
10、most fully featured, free, java ides available. eclipse is also very easy to use, with a minimal learning curve. this makes eclipse a very attractive ide for solid, open java development.(2) downloading eclipsenavigate to the eclipse downloads page at /downloads.download the eclipse i
11、de for java developers from this site. the package is relatively small (79mb) and should download fairly quickly.(3) installing and configuring eclipseexpand the package and run the eclipse.exe file. eclipse installs to your user directory by default (under microsoft windows).once the eclipse instal
12、lation commences, you will be prompted to create a default workspace, or folder. just as in most development environments, projects are created in, and saved to, a workspace. the default path for the workspace is your user directory. to select a different location, click browse and navigate to it.af
13、ter you select a location for your workspace, click ok.at this point, your development environment is downloaded and installed. while the installation of eclipse seemed deceivingly quick, you still need to do some configuration work before you can create your first android project. much of the confi
14、guration work that you need to do centers on the android sdk and the android plugin for eclipse.2、downloading and installing the android sdk(1) downloading the android sdkthe android sdk is easily accessible from the /android page.from the development home page, click the downlo
15、ad the sdk link under getting started. after you agree to the terms of the android sdk license agreement, you will see the download the android sdk page. the android sdk is downloaded in a 79mb(for windows) package and it should download fairly quickly. click the package name for your operating syst
16、em to begin the download.there is no “setup” or installation process to speak of for the android sdk; rather,you must follow a series of steps to associate the sdk with your eclipse development environment. the first of these steps is to obtain the android plugin for eclipse, after which you will co
17、nfigure it.(2) using the update feature of eclipse(3) downloading, installing, and configuring the android plugin for eclipse installing:1) open the eclipse application. you will download the android plugin for eclipse from within the eclipse ide.2)choose help | software updates | find and install.3
18、)in the install/update window, which allows you to begin the process of downloading and installing any of the plugins that are available to you for eclipse, click the search for new features to install radio button and then click next.4) the update sites to visit page of the install window, shown ne
19、xt, lists all the default websites used for obtaining eclipse plugins. however, the plugin you want, android for eclipse, is not available from the default sites. to download the android plugin,you must tell eclipse where to look for it, so click the new remote site button.5)in the new update site d
20、ialog box, shown next, you must enter two pieces ofinformation to continue: a name for your new site, and its associated url. thename is only for display purposes and does not affect the downloading of the plugin.in the name field, enter android plugin. in the url field, enter the url from which ecl
21、ipse will obtain information about the plugins that are available:/android/eclipse/. click ok.configuring:1) from the main eclipse window, choose window | preferences.2)in the preferences window, shown next, select android in the menu on the left. on the right side of the win
22、dow, click browse, find the location of the android sdk on your hard drive, and enter it in the sdk location field. eclipse needs this information to be able to access all the tools that are supplied with android, such as the emulator.(4) checking the path statementthe final step in setting up the a
23、ndroid sdk is to put it into your path statement. if you are using a microsoft windows machine, right-click computer (or my computer,depending on your version of windows) and select properties to open the systemproperties dialog box. click the advanced tab.click environment variables to display the
24、window of the same name, shown in the following illustration. this is where you can edit your path statement.under system variables, find the variable path and double-click it.in the edit system variable dialog box, shown next, add the location of your android sdkseparated from the existing paths by
25、 a semicolonand click ok to apply your changes, and click ok again in the environment variables window.3、exploring the android sdk(1) using the android sdk documentationthe android documentation is located in the docs folder within the android sdk at./%sdk folder%/docs. the documentation that is sup
26、plied with the sdk includes steps on downloading and installing the sdk, “getting started” quick steps for developing applications, and package definitions. the documentation is in html format and can be accessed though the documentation.html file in the root of the sdk folder.you can navigate to al
27、l of the documentation that is included in the android sdk by using the links within documentation.html.(2) using the android sdk tools(3) using the sample applicationsusing eclipse, load the api demos application as a new android project. to do this,select file | new | project from the eclipse menu
28、 bar; a new android project wizard opens. do not worry about the options in this wizard for now. simply select create project from existing source and browse to the folder with the api demo application in it. when the project is loaded, choose run to see it execute in the android emulator.(4) learni
29、ng the life cycle of an android applicationthe android application life cycle is unique in that the system controls much of the life cycle of the application. all android applications, or activities, are run within their own process. all of the running processes are watched by android and, depending
30、 on how the activity is running (this is, a foreground activity, background activity, and so forth),android may choose to end the activity to reclaim needed resources.android簡(jiǎn)介和開(kāi)發(fā)環(huán)境的搭建在2007年11月,當(dāng)google,在開(kāi)放手機(jī)聯(lián)盟下,發(fā)布android,這個(gè)對(duì)于應(yīng)用程序開(kāi)發(fā)者的障開(kāi)始消失。開(kāi)放手機(jī)聯(lián)盟是一個(gè)硬件和軟件開(kāi)發(fā)者組織,它包括google、ntt docomo,sprint nextel,和htc,它
31、的目標(biāo)是創(chuàng)建一個(gè)更開(kāi)放的手機(jī)環(huán)境。在開(kāi)放手機(jī)聯(lián)盟組織下發(fā)布的第一個(gè)產(chǎn)品是android-移動(dòng)設(shè)備操作系統(tǒng)。android作為一個(gè)系統(tǒng),是一個(gè)運(yùn)行在linux2.6內(nèi)核上的基于java的操作系統(tǒng).這個(gè)系統(tǒng)非常輕量級(jí)的,并且功能豐富.android應(yīng)用程序是用java開(kāi)發(fā)的,能夠十分簡(jiǎn)單的裝入新的平臺(tái)。android一個(gè)最令人興奮和注目的特色是它的架構(gòu),三部分運(yùn)用程序-包括“home-grown”當(dāng)這些和內(nèi)核系統(tǒng)綁定,可帶有同樣的系統(tǒng)優(yōu)先權(quán)執(zhí)行。這是和大多系統(tǒng)一個(gè)主要的違背,它給了嵌入式系統(tǒng)應(yīng)用程序一個(gè)比進(jìn)程優(yōu)先級(jí)(從第三方開(kāi)發(fā)者創(chuàng)建的應(yīng)用程序獲得)更大的執(zhí)行權(quán)。每一個(gè)應(yīng)用程序在它自己的進(jìn)程里使用
32、一個(gè)很輕量級(jí)的虛擬機(jī)執(zhí)行。除了我們能夠獲得用來(lái)開(kāi)發(fā)的很大量的sdk和良好的架構(gòu)庫(kù),對(duì)于android開(kāi)發(fā)者最令人興奮的特色是我們現(xiàn)在允許進(jìn)入任何操作系統(tǒng)所允許的。換句話說(shuō),如果你要?jiǎng)?chuàng)建一個(gè)撥電話的應(yīng)用程序,你可接近電話撥號(hào)程序,如果你想創(chuàng)建一個(gè)利用電話的內(nèi)在gps的應(yīng)用程序(如果配備),你可以接近它。對(duì)于開(kāi)發(fā)者創(chuàng)建動(dòng)態(tài)的和令人感興趣的應(yīng)用程序的可能性現(xiàn)在是寬闊開(kāi)放了。在這些特色中最頂級(jí)的是從android網(wǎng)站可獲得的平衡,google已經(jīng)投放一些它自己非常逗弄的特色。android應(yīng)用程序開(kāi)發(fā)者將能夠去把自己的應(yīng)用程序連接到google提供的已經(jīng)存在的程序(例如googlemaps、不所不在的
33、google搜索)上。假設(shè)你想寫(xiě)一個(gè)獲取一個(gè)打進(jìn)電話的發(fā)出地的google地圖,或者你想能夠存儲(chǔ)你聯(lián)系的一般搜索結(jié)果;利用android可能性的大門(mén)已經(jīng)成為直沖的開(kāi)放和寬闊?,F(xiàn)在將開(kāi)始你的android開(kāi)發(fā)之旅。一、下載和安裝 eclipse(1) 選擇一個(gè)開(kāi)發(fā)環(huán)境 為了符合開(kāi)放手機(jī)聯(lián)盟真正開(kāi)發(fā)手機(jī)開(kāi)放市場(chǎng)的主題,eclipse是一個(gè)最完全該特色、自由、可獲得的java ides中的一個(gè)。eclipse也使用非常簡(jiǎn)單,最小的學(xué)習(xí)彎路。這使得eclipse成為一個(gè)非常吸引人的堅(jiān)固的開(kāi)源java開(kāi)發(fā)ide。(2) 下載 eclipse 導(dǎo)航進(jìn)入下載頁(yè)面:/downlo
34、ads。從此網(wǎng)站下載java開(kāi)發(fā)者專用的eclipse ide。安裝包十分小(79m),并且下載也會(huì)相當(dāng)快。(3) 安裝和配置 eclipse 解壓安裝包,運(yùn)行eclipse.exe.在windows下,eclipse默認(rèn)安裝到你用戶目錄下。一旦eclipse 安裝開(kāi)始,你會(huì)被催促去創(chuàng)建一個(gè)默認(rèn)的工作空間,或是文件夾。正如多數(shù)的開(kāi)發(fā)環(huán)境,工程在工作空間里創(chuàng)建和保存。默認(rèn)的工作空間路徑是你的用戶目錄。要選擇不同的路徑,點(diǎn)擊browse,并且導(dǎo)航進(jìn)入來(lái)設(shè)置它。在你選擇了你工作空間路徑后,點(diǎn)擊ok。 到這,你的開(kāi)發(fā)環(huán)境被下載和安裝好了。而eclipse的安裝看上去快得出奇,但在你能創(chuàng)建你的第一個(gè)an
35、droid工程前,你仍然需要去做一些配置工作。許多需要你去完成的配置工作重點(diǎn)是在android sdk和android eclipse 插件上。2、 下載和安裝 android sdk(1) 下載 android sdkandroid sdk很容易從/android 頁(yè)面得到。從開(kāi)發(fā)主頁(yè),點(diǎn)擊“getting start”下面的sdk下載鏈接。在你同意android許可協(xié)議條款后,你將看到android sdk下載頁(yè)面。android sdk是一個(gè)79m的下載包(對(duì)于windows)并且下載會(huì)相當(dāng)快。點(diǎn)擊對(duì)應(yīng)你操作系統(tǒng)的包開(kāi)始下載。對(duì)于android
36、sdk,沒(méi)有“setup”或是安裝步驟涉及到。相反,你必須遵照一系列的步驟來(lái)把sdk和你的eclipse 開(kāi)發(fā)環(huán)境結(jié)合起來(lái)。這些步驟的第一步是獲得android eclipse插件,這之后你要配置它。(2) 使用 eclipse 更新特性(3) 下載、安裝和配置android eclipse 插件安裝:1)打開(kāi)eclipse應(yīng)用程序。你將在eclipse里面下載android eclipse 插件。2)選擇help|software updates|find and install。3)在install/update 窗口中,它允許你開(kāi)始下載和安裝任何一個(gè)對(duì)于你的eclipse可以獲得的插件的
37、步驟,點(diǎn)擊“search for new features to install”點(diǎn)選按鈕,接著點(diǎn)擊next。4)安裝窗口中的“update sites to view”頁(yè)面,在下面顯示,列出了所有已經(jīng)得到的eclipse插件的默認(rèn)網(wǎng)址。然而,你想要的android eclipse插件,在默認(rèn)網(wǎng)址里沒(méi)有。為了下載android 插件,你必須告訴eclipse 在哪里可以找到它,因此,點(diǎn)擊“new remote sites”按鈕5)在new update site對(duì)話框中,下面顯示的,你必須鍵入兩個(gè)信息來(lái)繼續(xù):新站點(diǎn)的名稱和可用的url鏈接。名稱只是為了顯示用的,對(duì)下載的插件沒(méi)有影響。在名稱域中,填
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 托兒所服務(wù)的危機(jī)管理和風(fēng)險(xiǎn)控制考核試卷
- 光纜生產(chǎn)自動(dòng)化與智能化技術(shù)考核試卷
- 樓房商用租賃合同范本
- 首付購(gòu)車(chē)合同范本
- 軸承成品采購(gòu)合同范本
- 水電承包勞務(wù)合同范本
- 酒店客房服務(wù)標(biāo)準(zhǔn)及流程制度
- 靜脈輸液的操作流程及操作規(guī)范
- 電商網(wǎng)站運(yùn)營(yíng)維護(hù)服務(wù)協(xié)議
- 共享經(jīng)濟(jì)平臺(tái)技術(shù)開(kāi)發(fā)合作協(xié)議
- 大學(xué)生就業(yè)指導(dǎo)教學(xué)-大學(xué)生就業(yè)形勢(shì)與政策
- 車(chē)路協(xié)同路側(cè)設(shè)備通信終端(RSU)測(cè)試技術(shù)要求(征求意見(jiàn)稿)
- TCAICC 001-2024 張家界莓茶質(zhì)量等級(jí)評(píng)價(jià)
- 冷鏈鄉(xiāng)村物流相關(guān)行業(yè)公司成立方案及可行性研究報(bào)告
- 6.《變色龍》省公開(kāi)課一等獎(jiǎng)全國(guó)示范課微課金獎(jiǎng)?wù)n件
- 股權(quán)架構(gòu)設(shè)計(jì)合同
- HJ1209-2021工業(yè)企業(yè)土壤和地下水自行監(jiān)測(cè)技術(shù)指南(試行)
- 《跨境電商英語(yǔ)》課程標(biāo)準(zhǔn)
- 2024年湖南電氣職業(yè)技術(shù)學(xué)院?jiǎn)握新殬I(yè)技能測(cè)試題庫(kù)附答案
- 幼兒園衛(wèi)生保健工作匯報(bào)
- 第一課 追求向上向善的道德(課時(shí)1)(課件)
評(píng)論
0/150
提交評(píng)論