毕业论文外文文献翻译Android-ApplicationFundamentals安卓应用基础Word下载.doc

上传人:b****9 文档编号:13073129 上传时间:2022-10-04 格式:DOC 页数:24 大小:101KB
下载 相关 举报
毕业论文外文文献翻译Android-ApplicationFundamentals安卓应用基础Word下载.doc_第1页
第1页 / 共24页
毕业论文外文文献翻译Android-ApplicationFundamentals安卓应用基础Word下载.doc_第2页
第2页 / 共24页
毕业论文外文文献翻译Android-ApplicationFundamentals安卓应用基础Word下载.doc_第3页
第3页 / 共24页
毕业论文外文文献翻译Android-ApplicationFundamentals安卓应用基础Word下载.doc_第4页
第4页 / 共24页
毕业论文外文文献翻译Android-ApplicationFundamentals安卓应用基础Word下载.doc_第5页
第5页 / 共24页
点击查看更多>>
下载资源
资源描述

毕业论文外文文献翻译Android-ApplicationFundamentals安卓应用基础Word下载.doc

《毕业论文外文文献翻译Android-ApplicationFundamentals安卓应用基础Word下载.doc》由会员分享,可在线阅读,更多相关《毕业论文外文文献翻译Android-ApplicationFundamentals安卓应用基础Word下载.doc(24页珍藏版)》请在冰豆网上搜索。

毕业论文外文文献翻译Android-ApplicationFundamentals安卓应用基础Word下载.doc

文献、资料来源:

文献、资料发表(出版)日期:

院(部):

专业:

班级:

姓名:

学号:

指导教师:

翻译日期:

2017.02.14

外文及翻译

英语原文

AndroidapplicationsarewrittenintheJavaprogramminglanguage.TheAndroidSDKtoolscompilethecode—alongwithanydataandresourcefiles—intoan 

Androidpackage,anarchivefilewithan 

.apk 

suffix.Allthecodeinasingle 

fileisconsideredtobeoneapplicationandisthefilethatAndroid-powereddevicesusetoinstalltheapplication.

Onceinstalledonadevice,eachAndroidapplicationlivesinitsownsecuritysandbox:

lTheAndroidoperatingsystemisamulti-userLinuxsysteminwhicheachapplicationisadifferentuser.

lBydefault,thesystemassignseachapplicationauniqueLinuxuserID(theIDisusedonlybythesystemandisunknowntotheapplication).ThesystemsetspermissionsforallthefilesinanapplicationsothatonlytheuserIDassignedtothatapplicationcanaccessthem.

lEachprocesshasitsownvirtualmachine(VM),soanapplication'

scoderunsinisolationfromotherapplications.

lBydefault,everyapplicationrunsinitsownLinuxprocess.Androidstartstheprocesswhenanyoftheapplication'

scomponentsneedtobeexecuted,thenshutsdowntheprocesswhenit'

snolongerneededorwhenthesystemmustrecovermemoryforotherapplications.

Inthisway,theAndroidsystemimplementsthe 

principleofleastprivilege.Thatis,eachapplication,bydefault,hasaccessonlytothecomponentsthatitrequirestodoitsworkandnomore.Thiscreatesaverysecureenvironmentinwhichanapplicationcannotaccesspartsofthesystemforwhichitisnotgivenpermission.

However,therearewaysforanapplicationtosharedatawithotherapplicationsandforanapplicationtoaccesssystemservices:

lIt'

spossibletoarrangefortwoapplicationstosharethesameLinuxuserID,inwhichcasetheyareabletoaccesseachother'

sfiles.Toconservesystemresources,applicationswiththesameuserIDcanalsoarrangetoruninthesameLinuxprocessandsharethesameVM(theapplicationsmustalsobesignedwiththesamecertificate).

lAnapplicationcanrequestpermissiontoaccessdevicedatasuchastheuser'

scontacts,SMSmessages,themountablestorage(SDcard),camera,Bluetooth,andmore.Allapplicationpermissionsmustbegrantedbytheuseratinstalltime.

ThatcoversthebasicsregardinghowanAndroidapplicationexistswithinthesystem.Therestofthisdocumentintroducesyouto:

lThecoreframeworkcomponentsthatdefineyourapplication.

lThemanifestfileinwhichyoudeclarecomponentsandrequireddevicefeaturesforyourapplication.

lResourcesthatareseparatefromtheapplicationcodeandallowyourapplicationtogracefullyoptimizeitsbehaviorforavarietyofdeviceconfigurations.

ApplicationComponents

ApplicationcomponentsaretheessentialbuildingblocksofanAndroidapplication.Eachcomponentisadifferentpointthroughwhichthesystemcanenteryourapplication.Notallcomponentsareactualentrypointsfortheuserandsomedependoneachother,buteachoneexistsasitsownentityandplaysaspecificrole—eachoneisauniquebuildingblockthathelpsdefineyourapplication'

soverallbehavior.

Therearefourdifferenttypesofapplicationcomponents.Eachtypeservesadistinctpurposeandhasadistinctlifecyclethatdefineshowthecomponentiscreatedanddestroyed.

Herearethefourtypesofapplicationcomponents:

Activities

An 

activity 

representsasinglescreenwithauserinterface.Forexample,anemailapplicationmighthaveoneactivitythatshowsalistofnewemails,anotheractivitytocomposeanemail,andanotheractivityforreadingemails.Althoughtheactivitiesworktogethertoformacohesiveuserexperienceintheemailapplication,eachoneisindependentoftheothers.Assuch,adifferentapplicationcanstartanyoneoftheseactivities(iftheemailapplicationallowsit).Forexample,acameraapplicationcanstarttheactivityintheemailapplicationthatcomposesnewmail,inorderfortheusertoshareapicture.

Anactivityisimplementedasasubclassof 

Activity 

andyoucanlearnmoreaboutitinthe 

Activities 

developerguide.

Services

service 

isacomponentthatrunsinthebackgroundtoperformlong-runningoperationsortoperformworkforremoteprocesses.Aservicedoesnotprovideauserinterface.Forexample,aservicemightplaymusicinthebackgroundwhiletheuserisinadifferentapplication,oritmightfetchdataoverthenetworkwithoutblockinguserinteractionwithanactivity.Anothercomponent,suchasanactivity,canstarttheserviceandletitrunorbindtoitinordertointeractwithit.

Aserviceisimplementedasasubc

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 解决方案

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1