欢迎来到天天文库
浏览记录
ID:11087198
大小:56.00 KB
页数:0页
时间:2018-07-09
《应用程序基础外文翻译》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、ApplicationFundamentalsAbstract:AndroidapplicationsarewrittenintheJavaprogramminglanguageandtheapplicationcomponentshavefourtypesofapplicationcomponents.BeforetheAndroidsystemcanstartanapplicationcomponent,thesystemmustknowthatthecomponentexistsbyreadingtheapplication'sA
2、ndroidManifest.xmlfile(the"manifest"file).AnAndroidapplicationiscomposedofmorethanjustcode—itrequiresresourcesthatareseparatefromthesourcecode,suchasimages,audiofiles,andanythingrelatingtothevisualpresentationoftheapplication.Keywords:Java;applicationcomponents;manifest;
3、source;From:http://developer.android.com/guide/topics/fundamentals.htmlAndroidapplicationsarewrittenintheJavaprogramminglanguage.TheAndroidSDKtoolscompilethecode—alongwithanydataandresourcefiles—intoanAndroidpackage,anarchivefilewithan.apksuffix.Allthecodeinasingle.apkfi
4、leisconsideredtobeoneapplicationandisthefilethatAndroid-powereddevicesusetoinstalltheapplication.Onceinstalledonadevice,eachAndroidapplicationlivesinitsownsecuritysandbox:lTheAndroidoperatingsystemisamulti-userLinuxsysteminwhicheachapplicationisadifferentuser.lBydefault,
5、thesystemassignseachapplicationauniqueLinuxuserID(theIDisusedonlybythesystemandisunknowntotheapplication).ThesystemsetspermissionsforallthefilesinanapplicationsothatonlytheuserIDassignedtothatapplicationcanaccessthem.lEachprocesshasitsownvirtualmachine(VM),soanapplicatio
6、n'scoderunsinisolationfromotherapplications.lBydefault,everyapplicationrunsinitsownLinuxprocess.Androidstartstheprocesswhenanyoftheapplication'scomponentsneedtobeexecuted,thenshutsdowntheprocesswhenit'snolongerneededorwhenthesystemmustrecovermemoryforotherapplications.In
7、thisway,theAndroidsystemimplementstheprincipleofleastprivilege.Thatis,eachapplication,bydefault,hasaccessonlytothecomponentsthatitrequirestodoitsworkandnomore.Thiscreatesaverysecureenvironmentinwhichanapplicationcannotaccesspartsofthesystemforwhichitisnotgivenpermission.
8、However,therearewaysforanapplicationtosharedatawithotherapplicationsandforanapplicationtoaccesssystemse
此文档下载收益归作者所有