畢業(yè)論文基于Android操作系統(tǒng)的手機(jī)軟件商店開設(shè)05095_第1頁
畢業(yè)論文基于Android操作系統(tǒng)的手機(jī)軟件商店開設(shè)05095_第2頁
畢業(yè)論文基于Android操作系統(tǒng)的手機(jī)軟件商店開設(shè)05095_第3頁
畢業(yè)論文基于Android操作系統(tǒng)的手機(jī)軟件商店開設(shè)05095_第4頁
畢業(yè)論文基于Android操作系統(tǒng)的手機(jī)軟件商店開設(shè)05095_第5頁
已閱讀5頁,還剩27頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、摘摘 要要 在如今的智能手機(jī)市場中,android 異軍突起,以其強(qiáng)大的背景,靈活開源的操 作性,豐富多元的用戶體驗(yàn)和時(shí)尚的系統(tǒng)界面快速的贏得了眾多手機(jī)使用者的青睞。 android 是 google 開發(fā)的基于 linux 平臺(tái)的開源手機(jī)操作系統(tǒng),其主要包含了五大 基本架構(gòu)層次。隨著 android 手機(jī)的普及,android 應(yīng)用的需求勢必會(huì)越來越大,這將 是一個(gè)潛力巨大的市場。 與傳統(tǒng)的塞班系統(tǒng),始終長期處于高端商務(wù)路線的蘋果 iphone 和新興的但基礎(chǔ)雄 厚的 windows mobile 相比,android 憑借自己的獨(dú)特個(gè)性,逐漸呈現(xiàn)出諸侯雖爭霸, 最終我問鼎的態(tài)勢。 本文皆以

2、基于 android 操作系統(tǒng)的手機(jī)軟件為研究對象,通過分析 android 及其手 機(jī)軟件商店 google play,來總結(jié)出如何實(shí)現(xiàn)手機(jī)軟件的電子商務(wù)化,然而,在實(shí)現(xiàn)手機(jī) 軟件的電子商店化這一過程中,又需要對幾個(gè)進(jìn)程作出深入而細(xì)致的研究,首先,要 對手機(jī)軟件進(jìn)行前景預(yù)測;其次,要分析實(shí)現(xiàn)軟件的商務(wù)化過程中遇到的問題;最后, 就是要分析如何將軟件與電子商務(wù)進(jìn)行結(jié)合。 我將進(jìn)行探索和研究,最后依靠當(dāng)今形式下的眾多觀點(diǎn)為參考,以自己的見解和 認(rèn)識(shí)為主導(dǎo),做出一份結(jié)論。 關(guān)鍵字:關(guān)鍵字:android 操作系統(tǒng),android 及其手機(jī)軟,google play,play store 手機(jī)軟件的

3、 電子商務(wù)化 abstract in current smart phone market, android wins a more and more important role. with the flexible and open-source operation, rich and diverse user experience and fashionable ui, android wins more and more favor from users. android is a open- source mobile operating system on linux platfo

4、rm developed by google, which has 5 layers of basic framework. with the prevailing of android mobile phone, android is due to be used more and more widely,and this is a market with great potentials. compared with traditional symbian, iphone (following high-end business) and windows mobile (surging u

5、p but with powerful foundation), android can use its special features to gradually reveal its advantages. this paper conducts searches on the basis of mobile software on android operating system. by analyzing android and its mobile software market google play, this paper concludes the way to realize

6、 the e-commerce of mobile software. however, in the process of realizing e-commerce of mobile software, deep and detailed research should be carried out on several threads. firstly, the prospect of the mobile software should be predicted; secondly, the problems met to realize the e-commerce of mobil

7、e software need to be analyzed and realized; lastly, the way to combine software and e- commerce need to be analyzed. we should get corresponding conclusion by probing 更重要的一方面是 google 選擇的 market 模式與蘋 果的 app store 之間的差異會(huì)逐漸顯現(xiàn)出來。 market 擁有自身豐富的軟件資源,以 free 和 pay 兩種方式,供用戶只有 選擇和下載。在這些軟件資源中,涵蓋了非常多的中,有對移動(dòng)設(shè)備

8、內(nèi)存管理 工具,有文檔管理編輯工具,有系統(tǒng)美化工具,當(dāng)然,更多的,是吸引力更為 強(qiáng)大的游戲。 market 與 app store 的最大的區(qū)別,在于只有。app store 通常會(huì)在用戶滿 意度不高或者迅速降低的時(shí)候,將某個(gè) app 給剔除到。誠然,按照蘋果 ceo 的說法,這是他們對用戶負(fù)責(zé)的態(tài)度,但是,我們不應(yīng)該忘記,用戶少不代表 沒有用戶喜歡,喜愛度降低不代表它不會(huì)反彈,android market 并沒有采取這 樣的方式,而是我們所謂的“放羊式”,它不會(huì)因?yàn)槟晨钴浖脩魸M意度不高或 者迅速降低的時(shí)候,將之剔除。也許,這會(huì)略微影響用戶體驗(yàn),但是它卻更多 的反映了,用戶在這些過程中是不受

9、監(jiān)控的,是自由和自主的。在這個(gè)強(qiáng)調(diào)個(gè) 人性格和隱私的年代,這一點(diǎn),完全可以作為一把強(qiáng)有力的利刃,劃傷“敵人”, 占據(jù)優(yōu)勢。 第 4 章 結(jié)論 通過這次畢業(yè)論文的編寫,讓我對 android 這個(gè)新興的移動(dòng)平臺(tái)有了更深 的了解,在對 market 這個(gè)手機(jī)軟件下載平臺(tái)進(jìn)行了解和思索的過程中,也讓我 對國外手機(jī)軟件行業(yè)有了比較深入的了解,同時(shí)也讓我回頭來觀察和反思國內(nèi) 的手機(jī)軟件運(yùn)作現(xiàn)狀。在這次編寫過程中,我了解到 android market 的運(yùn)營模 式和操作手段,同時(shí)也了解到 android market 在這個(gè)智能操作系統(tǒng)的中作用以 及它將來可能會(huì)擁有的更為重要的作用,在這個(gè)手機(jī)軟件商務(wù)化

10、的過程中,對 整個(gè) android 高端智能設(shè)備,產(chǎn)生了及其深遠(yuǎn)的影響。 market 依靠自身豐富的軟件資源,以 free 和 pay 兩種方式,供用戶只有選 擇和下載。在這些軟件資源中,涵蓋了非常多的中,有對移動(dòng)設(shè)備內(nèi)存管理工 具,有文檔管理編輯工具,有系統(tǒng)美化工具,當(dāng)然,更多的,是吸引力更為強(qiáng) 大的游戲。在用戶下載的過程中,不僅僅是當(dāng)前可見的巨大的商業(yè)利潤,同時(shí) 更重要的,極大程度的抓住了用戶的心。 反觀國內(nèi),在這方面做的,還遠(yuǎn)遠(yuǎn)不夠。首先就是國內(nèi)暫時(shí)還沒有出現(xiàn)比 較成功的自主研發(fā)的手機(jī)智能操作系統(tǒng),自然也就沒有類似于 market 的東西產(chǎn) 生,其次,國人在無線網(wǎng)絡(luò)上的消費(fèi)觀念和水平還

11、有待提高,而且網(wǎng)絡(luò)現(xiàn)在也 是一個(gè)比較大的問題,首先 3g 網(wǎng)絡(luò)下載,所產(chǎn)生的流量費(fèi),對大部分人來說, 都是很昂貴的,而國內(nèi) wifi 的站點(diǎn),也實(shí)在是少的可憐,所以,要實(shí)現(xiàn)國內(nèi) 手機(jī)軟件的電子商務(wù)話,還需要耐心等待。 在未來幾年,智能手機(jī)全面進(jìn)軍中國市場的時(shí)候,我們國內(nèi)的軟件公司, 依靠什么去跟這些國際公司競爭呢?這是一個(gè)嚴(yán)峻而值得思考的問題。 參考文獻(xiàn)參考文獻(xiàn) 1 伯內(nèi)特,北京人民郵電出版社,200985-112 2 e2ecloud 工作室編著,深入淺出 google android,北京人民郵電出版社,200998-115 3 唐禮勇、陳鐘著,電子商務(wù)技術(shù)及其安全問題,計(jì)算機(jī)工程與應(yīng)用專

12、業(yè),2000 年第 07 期 4 allan afush,互聯(lián)網(wǎng)商務(wù)模式與戰(zhàn)略,清華大學(xué)出版社,2002.1 5 方美琪主編,電子商務(wù)概論.清華大學(xué)出版社,2002.2 6 張林鵬、魏一鳴,電子商務(wù)中的安全問題及法律保護(hù),中國管理科學(xué)專業(yè),2000 年第 s1 期 7 周虹,電子商務(wù)支付與結(jié)算,人民郵電出版社,2009.3.1 8 eoeandroid 特刊第三期,android market 及應(yīng)用發(fā)布,ver 1.0.0,2009.06.06 致謝 本次論文能夠順利完成,首先要感謝我的母校xxxxxxx,是你給了 我學(xué)習(xí)知識(shí)的土壤,讓我在這一抹富饒的土地上茁壯成長。在這次論文的設(shè)計(jì) 中,也

13、離不開各位指導(dǎo)老師耐心又熱心的幫助,衷心地感謝你們給予我的指導(dǎo) 和幫助。此外,還要感謝曾經(jīng)為我授過課的各位老師,謝謝你們教會(huì)了我專業(yè) 方面的知識(shí)。也要感謝論文指導(dǎo)老師,以及公司里的論文導(dǎo)師,正是在你們的 幫助下,我才逐漸完成了本次論文。謝謝你們大家! 外文資料原文 introduction to android development -the open source appliance platform frank ableson, software designer introduction the blackberry and iphone, which have appealing a

14、nd high-volume mobile platforms, are addressing opposite ends of a spectrum. the blackberry is rock-solid for the enterprise business user. for a consumer device, its hard to compete with the iphone for ease of use and the cool factor. android, a young and yet-unproven platform, has the potential to

15、 play at both ends of the mobile-phone spectrum and perhaps even bridge the gulf between work and play. today, many network-based or network-capable appliances run a flavor of the linux kernel. its a solid platform: cost-effective to deploy and support and readily accepted as a good design approach

16、for deployment. the ui for such devices is often html-based and viewable with a pc or mac browser. but not every appliance needs to be controlled by a general computing device. consider a conventional appliance, such as a stove, microwave or bread maker. what if your household appliances were contro

17、lled by android and boasted a color touch screen? with an android ui on the stove-top, the author might even be able to cook something. in this article, learn about the android platform and how it can be used for mobile and nonmobile applications. install the android sdk and build a simple applicati

18、on. download the source code for the example application in this article. a brief history of android the android platform is the product of the open handset alliance, a group of organizations collaborating to build a better mobile phone. the group, led by google, includes mobile operators, device ha

19、ndset manufacturers, component manufacturers, software solution and platform providers, and marketing companies. from a software development standpoint, android sits smack in the middle of the open source world. the first android-capable handset on the market was the g1 device manufactured by htc an

20、d provisioned on t-mobile. the device became available after almost a year of speculation, where the only software development tools available were some incrementally improving sdk releases. as the g1 release date neared, the android team released sdk v1.0 and applications began surfacing for the ne

21、w platform. to spur innovation, google sponsored two rounds of android developer challenges, where millions of dollars were given to top contest submissions. a few months after the g1, the android market was released, allowing users to browse and download applications directly to their phones. over

22、about 18 months, a new mobile platform entered the public arena. the android platform with androids breadth of capabilities, it would be easy to confuse it with a desktop operating system. android is a layered environment built upon a foundation of the linux kernel, and it includes rich functions. t

23、he ui subsystem includes: windows views widgets for displaying common elements such as edit boxes, lists, and drop-down lists android includes an embeddable browser built upon webkit, the same open source browser engine powering the iphones mobile safari browser. android boasts a healthy array of co

24、nnectivity options, including wifi, bluetooth, and wireless data over a cellular connection (for example, gprs, edge, and 3g). a popular technique in android applications is to link to google maps to display an address directly within an application. support for location-based services (such as gps)

25、 and accelerometers is also available in the android software stack, though not all android devices are equipped with the required hardware. there is also camera support. historically, two areas where mobile applications have struggled to keep pace with their desktop counterparts are graphics/media,

26、 and data storage methods. android addresses the graphics challenge with built-in support for 2-d and 3-d graphics, including the opengl library. the data-storage burden is eased because the android platform includes the popular open source sqlite database. figure 1 shows a simplified view of the an

27、droid software layers. figure 1. android software layers application architecture as mentioned, android runs atop a linux kernel. android applications are written in the java programming language, and they run within a virtual machine (vm). its important to note that the vm is not a jvm as you might

28、 expect, but is the dalvik virtual machine, an open source technology. each android application runs within an instance of the dalvik vm, which in turn resides within a linux-kernel managed process, as shown below. figure 2. dalvik vm an android application consists of one or more of the following c

29、lassifications: activities an application that has a visible ui is implemented with an activity. when a user selects an application from the home screen or application launcher, an activity is started. services a service should be used for any application that needs to persist for a long time, such

30、as a network monitor or update-checking application. content providers you can think of content providers as a database server. a content providers job is to manage access to persisted data, such as a sqlite database. if your application is very simple, you might not necessarily create a content pro

31、vider. if youre building a larger application, or one that makes data available to multiple activities or applications, a content provider is the means of accessing your data. broadcast receivers an android application may be launched to process a element of data or respond to an event, such as the

32、receipt of a text message. an android application, along with a file called androidmanifest.xml, is deployed to a device. androidmanifest.xml contains the necessary configuration information to properly install it to the device. it includes the required class names and types of events the applicatio

33、n is able to process, and the required permissions the application needs to run. for example, if an application requires access to the network to download a file, for example this permission must be explicitly stated in the manifest file. many applications may have this specific permission enabled.

34、such declarative security helps reduce the likelihood that a rogue application can cause damage on your device. the next section discusses the development environment required to build an android application. required tools the easiest way to start developing android applications is to download the

35、android sdk and the eclipse ide. android development can take place on microsoft windows, mac os x, or linux. this article assumes you are using the eclipse ide and the android developer tools plug-in for eclipse. android applications are written in the java language, but compiled and executed in th

36、e dalvik vm (a non-java virtual machine). coding in the java language within eclipse is very intuitive; eclipse provides a rich java environment, including context-sensitive help and code suggestion hints. once your java code is compiled cleanly, the android developer tools make sure the application

37、 is packaged properly, including the androidmanifest.xml file. its possible to develop android applications without eclipse and the android developer tools plug-in, but you would need to know your way around the android sdk. the android sdk is distributed as a zip file that unpacks to a directory on

38、 your hard drive. since there have been several sdk updates, it is recommended that you keep your development environment well organized so you can easily switch between sdk installations. the sdk includes: android.jar java archive file containing all of the android sdk classes necessary to build yo

39、ur application. documention.html and docs directory the sdk documentation is provided locally and on the web. its largely in the form of javadocs, making it easy to navigate the many packages in the sdk. the documentation also includes a high-level development guide and links to the broader android

40、community. samples directory the samples subdirectory contains full source code for a variety of applications, including apidemo, which exercises many apis. the sample application is a great place to explore when starting android application development. tools directory contains all of the command-l

41、ine tools to build android applications. the most commonly employed and useful tool is the adb utility (android debug bridge). usb driver directory containing the necessary drivers to connect the development environment to an android-enabled device, such as the g1 or the android dev 1 unlocked devel

42、opment phone. these files are only required for developers using the windows platform. android applications may be run on a real device or on the android emulator, which ships with the android sdk. summary: android is a complete operating environment based upon the linux v2.6 kernel. initially, the

43、deployment target for android was the mobile-phone arena, including smart phones and lower-cost flip-phone devices. however, androids full range of computing services and rich functional support have the potential to extend beyond the mobile-phone market. android can be useful for other platforms an

44、d applications. in this article, get an introduction to the android platform and learn how to code a basic android application. about the author: after his college basketball career came to an end without a multiyear contract to play for the l.a. lakers, frank ableson shifted his focus to computer s

45、oftware design. he enjoys solving complex problems, particularly in the areas of communications and hardware interfacing. when not working, he can be found spending time with his wife nikki and their children 譯文 androidandroid 開發(fā)介紹開發(fā)介紹 -開源應(yīng)用平臺(tái)介紹開源應(yīng)用平臺(tái)介紹 frank ableson 介紹 黑莓和 iphone,都是具有巨大吸引力和高容量的移動(dòng)平臺(tái)

46、,然而它們的銷 售理念始終都處在兩個(gè)相反的對立面。黑莓一直堅(jiān)定不移的為企業(yè)商務(wù)用戶服 務(wù),作為一個(gè)面向企業(yè)商務(wù)用戶的手機(jī),它很難和 iphone 的易用性和“酷”元 素相抗衡。android個(gè)年輕的未被認(rèn)可的平臺(tái),它很有可能會(huì)同時(shí)占據(jù)移動(dòng) 手機(jī)的這兩個(gè)面,甚至是成為工作和娛樂的橋梁。 今天,許多網(wǎng)絡(luò)或者基于網(wǎng)絡(luò)功能的設(shè)備都是依賴于 linux 內(nèi)核運(yùn)行的。 這是一個(gè)堅(jiān)實(shí)的平臺(tái):在成本效益的部署和支持下,這是一個(gè)能隨時(shí)為已經(jīng)部 署好的設(shè)計(jì)方法所接受的平臺(tái)。這種設(shè)備的用戶界面往往是通過 html 和 pc 或 mac 的瀏覽器來瀏覽的。但不是每一個(gè)設(shè)備都需要通過一個(gè)通用的計(jì)算設(shè)備來 控制的。可以將

47、它想象為一個(gè)傳統(tǒng)的家用設(shè)備,如爐灶,微波爐或面包的制造 商。是否你的家用設(shè)備是 android 系統(tǒng),而且具有一個(gè)彩色的觸摸屏?或許說 不定哪一天讀者就能夠在一個(gè)打著 android 商標(biāo)的爐灶上煮飯了。 在這篇文章中,將會(huì)學(xué)習(xí)并了解 android 平臺(tái),以及它如何能夠被移動(dòng)和 非移動(dòng)平臺(tái)所應(yīng)用,如何去安裝 android sdk 并建立一個(gè)簡單的應(yīng)用程序,以 及如何下載用于本文中的示例應(yīng)用程序的源代碼。 android 簡史 android 平臺(tái)是開放手機(jī)聯(lián)盟的產(chǎn)品,這個(gè)組織是一個(gè)旨在合作建立一個(gè) 更好的移動(dòng)電話的組織集團(tuán)。該小組由 google 領(lǐng)導(dǎo),包括移動(dòng)運(yùn)營商,設(shè)備手 機(jī)制造商,元

48、件制造商,軟件解決方案和平臺(tái)提供商和銷售公司。從軟件開發(fā) 角度來看,android 始終處在開源世界的最中心。 第一款發(fā)布于市場的 android 功能的手機(jī) g1 是由 htc 制造的設(shè)備,它置備 于 tmobile 中,隨著軟件開發(fā)工具提供和發(fā)布的一些已經(jīng)逐步改善的 sdk 版 本,在接近一年的眾多猜測中,android 手機(jī)終于實(shí)現(xiàn)面向市場,走入實(shí)用化。 由于 g1 的發(fā)布日期臨近,android 開發(fā)團(tuán)隊(duì)發(fā)布了 sdk v1.0,同時(shí)應(yīng)用程序也 開始面向新的平臺(tái)。 為了鼓勵(lì)創(chuàng)新,google 贊助了兩輪的“android 開發(fā)者挑戰(zhàn)“,斥資數(shù)百 萬給那些最好的比賽意見書,在 g1 發(fā)布

49、的幾個(gè)月后,android market 也隨之 發(fā)布,它允許用戶瀏覽和直接下載應(yīng)用程序到自己的手機(jī)。18 個(gè)月之后,一個(gè) 新的移動(dòng)平臺(tái)進(jìn)入了公有領(lǐng)域。 android 平臺(tái) 隨著 android 平臺(tái)能力的拓展,很容易讓人們將它和一些桌面操作系統(tǒng)混 淆起來。android 的系統(tǒng)環(huán)境是一個(gè)基于 linux 內(nèi)核的分層環(huán)境,它含有豐富 的功能。 該用戶界面子系統(tǒng)包括: 1. 窗口 2. 視圖 3.用以顯示如編輯框,列表和下拉菜單等常見元素的 widget android 包括了一個(gè)基于 webkit 的嵌入式瀏覽器,這個(gè)開源的瀏覽器引擎 同樣也在為 iphone 的移動(dòng)瀏覽器 safari 提

50、供支持。 android 包含了一個(gè)健全的陣列式的網(wǎng)絡(luò)連接選項(xiàng):包含 wifi,藍(lán)牙和一個(gè) 網(wǎng)狀覆蓋的無線數(shù)據(jù)網(wǎng)絡(luò)(比如:gprs, edge, 和 3g) ,在 android 應(yīng)用程序 中常用的技術(shù)是在一個(gè)應(yīng)用程序中直接鏈接到 google 地圖來顯示一個(gè)地址。支 持基于位置/定位的服務(wù)(如 gps) ,雖然不是所有的 android 設(shè)備都配備了必 要的硬件,但在配備了必要硬件的設(shè)備上,還可以在 android 軟件棧中使用加 速度計(jì),當(dāng)然,這設(shè)備同時(shí)也支持照相機(jī)。 縱觀手機(jī)的這段歷史,手機(jī)應(yīng)用程序,總是努力能夠趕上桌面系統(tǒng)的圖形/ 媒體和數(shù)據(jù)存儲(chǔ)方法的發(fā)展步伐。而新興產(chǎn)物 androi

51、d 的挑戰(zhàn),就一舉解決了 內(nèi)置支持 2d/3d 圖形的難題,包括 opengl 庫。在 android 平臺(tái)中包含了流行的 開源的 sqlite 數(shù)據(jù)庫,這樣減輕數(shù)據(jù)存儲(chǔ)負(fù)擔(dān)就變得容易很多了。 圖 1 顯示了 android 的軟件層的簡化視圖 圖 1:android 軟件分層 應(yīng)用程序 自帶(電話,聯(lián)系人,瀏覽器) 第三方/客戶 程序框架 電話管理,定位管理,提示管理,聯(lián)系人供應(yīng)商,窗口資源管理等 庫 繪圖,多媒體,數(shù)據(jù)庫,webkit 等 android 運(yùn)行 dalvik 虛擬機(jī) linux 內(nèi)核 電源,文件系統(tǒng),驅(qū)動(dòng),進(jìn)程管理 應(yīng)用程序體系結(jié)構(gòu) 綜上所述,android 操作系統(tǒng)是在

52、linux 內(nèi)核之上運(yùn)行,android 應(yīng)用程序 都用 java 編程語言來書寫,在虛擬機(jī)上運(yùn)行。需要重點(diǎn)指出的是,這個(gè)虛擬機(jī) 不是人們預(yù)料的 jvm,而是一個(gè)利用開源技術(shù)的 dalvik 虛擬機(jī)。每個(gè) android 應(yīng)用程序都是在 dalvik 虛擬機(jī)上運(yùn)行的一個(gè)實(shí)例,這些實(shí)例反過來又在 linux 內(nèi)核管理進(jìn)程中駐留,如下所示。 figure 2. dalvik vm linux 內(nèi)核 linux 進(jìn)程 dalvik 虛擬機(jī) android 應(yīng)用程序 一個(gè) android 應(yīng)用程序包含了一個(gè)或者多個(gè)一下分類: 活動(dòng):一個(gè)應(yīng)用程序擁有一個(gè)伴隨活動(dòng)實(shí)施而產(chǎn)生的可見的用戶界面,當(dāng) 一個(gè)用戶從

53、主界面選擇或者啟動(dòng)一個(gè)應(yīng)用程序的時(shí)候,一個(gè)活動(dòng)就開始了。 服務(wù):一個(gè)服務(wù)應(yīng)該被用于任何一個(gè)需要持續(xù)很長一段時(shí)間的應(yīng)用程序, 比如說網(wǎng)絡(luò)監(jiān)視器或更新檢查應(yīng)用程序。 內(nèi)容提供商:你可以把一個(gè)內(nèi)容提供商想象成一個(gè)數(shù)據(jù)庫服務(wù)器。一個(gè)內(nèi) 容提供商的工作就是管理持久化數(shù)據(jù)的存取,比如說 sqlite 數(shù)據(jù)庫。如果你的 應(yīng)用程序非常簡單,則不需要?jiǎng)?chuàng)建一個(gè)內(nèi)容提供商。如果你正在搭建一個(gè)龐大 的應(yīng)用程序,或者是一個(gè)為單個(gè)/多個(gè)活動(dòng)或應(yīng)用程序提供數(shù)據(jù)的應(yīng)用程序,一 個(gè)內(nèi)容提供商意味著你能輕松自如的存取你的數(shù)據(jù)。 播放接收器:一個(gè) android 的應(yīng)用程序會(huì)被啟動(dòng)用于處理數(shù)據(jù)或者是回應(yīng) 一個(gè)事件,例如接受一個(gè)文本

54、信息。 一個(gè) android 應(yīng)用程序會(huì)嵌入一個(gè)叫 androidmanifest.xml 的文件在設(shè)備 中,androidmanifest.xml 文件中包括如何正確安裝這個(gè)應(yīng)用程序到設(shè)備中的 必要配置信息。它還包括了一個(gè)應(yīng)用程序能正常運(yùn)行的必要的類的名字和事件 的類型,以及這個(gè)應(yīng)用程序運(yùn)行需要的權(quán)限。例如:一個(gè)應(yīng)用程序需要訪問網(wǎng) 絡(luò)來下載文件,此權(quán)限必須在清單文件明確指出。許多的應(yīng)用程序都需要這些 可用的特定權(quán)限。像這樣需要聲明的安全性有助于降低流氓應(yīng)用程序在您的設(shè) 備中造成損害的可能性。 下一節(jié)將討論建立一個(gè) android 應(yīng)用程序需要的開發(fā)環(huán)境。 需要的工具 開始開發(fā)一個(gè) andro

55、id 應(yīng)用程序最簡單的方法就是下載 android sdk 和 eclipse ide。同時(shí),android 也可以在 microsoft,windows,mac os x,或 者 linux 操作系統(tǒng)上開發(fā)。 本文假設(shè)您使用的是 eclipse ide 和 android 開發(fā)工具,插件為 eclipse。android 程序是由 java 語言編寫的,但是編制和執(zhí)行在 dalvik 虛擬 機(jī)上(一個(gè)非 java 虛擬機(jī)) 。在 eclipse 中 java 語言編碼是非常直觀的, eclipse 提供了一個(gè)豐富的 java 環(huán)境,包括上下文沖突的幫助和建議的代碼提 示。一旦您的 java

56、代碼編譯完成,android 開發(fā)工具,能確保正確的應(yīng)用程序 打包,包括 androidmanifest.xml 文件。當(dāng)然,有可能開發(fā) android 應(yīng)用程序 不會(huì)用到 eclipse 和 android 開發(fā)插件工具,但是你需要知道運(yùn)行 android sdk 的方法。 分布式的 android sdk 是以一個(gè) zip 文件解壓到您的硬盤驅(qū)動(dòng)器的目錄下。 由于有過幾次 sdk 更新,建議您保留您的開發(fā)環(huán)境良好的目錄結(jié)構(gòu),以此您可 以輕松地切換 sdk 的安裝。 sdk 包括: android.jar java 歸檔文件中包含了建立一個(gè)應(yīng)用程序需要的 android sdk 類。 doc

57、umention.html 和文檔目錄 sdk 文檔可以由本地和網(wǎng)站提供,它主要是以 javadocs 的格式存在,使得它 可以很輕松的找出 sdk 中的許多文件包.這個(gè)文檔同時(shí)也包含了更高級別的開發(fā) 向?qū)Ш吐?lián)絡(luò)更廣泛 android 社區(qū)的鏈接 示例目錄:. 示例子目錄包含了多種應(yīng)用程序的完整源代碼,包括了能應(yīng)用多個(gè) api 的 apidemo,當(dāng)啟動(dòng) android 應(yīng)用程序開發(fā)的時(shí)候,示例應(yīng)用程序就成了一個(gè)非常值 得探索的地方. 工具目錄: 目錄工具包含了所有的用于開發(fā)應(yīng)用程序的命令行的工具,最常用的和最有 用的工具是 adb 實(shí)用程序(android 調(diào)試橋) 。 usb 驅(qū)動(dòng) usb

58、 驅(qū)動(dòng)目錄包含了必要的連接到 android 相關(guān)功能設(shè)備的開發(fā)環(huán)境的驅(qū) 動(dòng)程序,比如 g1 或者 dev1 這種解鎖開發(fā)手機(jī)。這些文件對開發(fā)者來說,只需要 使用 windows 平臺(tái)即可. android 應(yīng)用程序不僅可以在真實(shí)的手機(jī)上運(yùn)行,同時(shí)也可以在附帶 android sdk 的 android 的模擬器上運(yùn)行. 總結(jié): android 是一個(gè)基于 linux 內(nèi)核的完全開源的智能手機(jī)操作系統(tǒng).起初, android 的部署目標(biāo),是在移動(dòng)手機(jī)領(lǐng)域,包括智能手機(jī)和成本低廉的翻蓋手機(jī)。 不過,android 全方位的計(jì)算服務(wù)和豐富的功能支持使得它有可能使自己的業(yè)務(wù) 延伸到移動(dòng)手機(jī)市場.an

59、droid 對其他平臺(tái)和應(yīng)用程序來說,都是很有用處的.在 這篇文章中,對 android 平臺(tái)和學(xué)習(xí)如何編寫一個(gè)基本的 android 應(yīng)用程序都進(jìn) 行了一個(gè)介紹。 關(guān)于作者:在他的大學(xué)籃球生活結(jié)束時(shí)還沒能接到洛 杉磯湖人隊(duì)的一份長期合同的情形下, frank ableson 轉(zhuǎn)移他的注意力到計(jì)算機(jī)軟件的設(shè)計(jì)。他喜歡 解決復(fù)雜的問題,尤其是在通訊和硬件接口等領(lǐng)域, 當(dāng)不 工作時(shí),他可以花時(shí)間與他的妻子 nikki 和他們的孩子 在一起。 emloyment tribunals sort out disagreements between employers and employees. you

60、 may need to make a claim to an employment tribunal if: you dont agree with the disciplinary action your employer has taken against you your employer dismisses you and you think that you have been dismissed unfairly. for more informu, take advice from one of the organisations listed under fur ther h

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論