欢迎来到天天文库
浏览记录
ID:319589
大小:35.18 KB
页数:11页
时间:2017-07-23
《应用程序基础-外文翻译》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ApplicationFundamentalsAbstract:AndroidapplicationsarewrittenintheJavaprogramminglanguageandtheapplicationcomponentshavefourtypesofapplicationcomponents.BeforetheAndroidsystemcanstartanapplicationcomponent,thesystemmustknowthatthecomponentexistsbyreadingtheapplication'sAndroidMani
2、fest.xmlfile(the"manifest"file).AnAndroidapplicationiscomposedofmorethanjustcode—itrequiresresourcesthatareseparatefromthesourcecode,suchasimages,audiofiles,andanythingrelatingtothevisualpresentationoftheapplication.Keywords:Java;applicationcomponents;manifest;source;From:http://d
3、eveloper.android.com/guide/topics/fundamentals.htmlAndroidapplicationsarewrittenintheJavaprogramminglanguage.TheAndroidSDKtoolscompilethecode—alongwithanydataandresourcefiles—intoanAndroidpackage,anarchivefilewithan.apksuffix.Allthecodeinasingle.apkfileisconsideredtobeoneapplicati
4、onandisthefilethatAndroid-powereddevicesusetoinstalltheapplication.Onceinstalledonadevice,eachAndroidapplicationlivesinitsownsecuritysandbox:lTheAndroidoperatingsystemisamulti-userLinuxsysteminwhicheachapplicationisadifferentuser.lBydefault,thesystemassignseachapplicationauniqueLi
5、nuxuserID(theIDisusedonlybythesystemandisunknowntotheapplication).ThesystemsetspermissionsforallthefilesinanapplicationsothatonlytheuserIDassignedtothatapplicationcanaccessthem.lEachprocesshasitsownvirtualmachine(VM),soanapplication'scoderunsinisolationfromotherapplications.lBydef
6、ault,everyapplicationrunsinitsownLinuxprocess.Androidstartstheprocesswhenanyoftheapplication'scomponentsneedtobeexecuted,thenshutsdowntheprocesswhenit'snolongerneededorwhenthesystemmustrecovermemoryforotherapplications.Inthisway,theAndroidsystemimplementstheprincipleofleastprivile
7、ge.Thatis,eachapplication,bydefault,hasaccessonlytothecomponentsthatitrequirestodoitsworkandnomore.Thiscreatesaverysecureenvironmentinwhichanapplicationcannotaccesspartsofthesystemforwhichitisnotgivenpermission.However,therearewaysforanapplicationtosharedatawithotherapplicationsan
8、dforanapplicationtoaccesssystemse
此文档下载收益归作者所有