资源描述:
《毕业论文英文文献翻译-计算机专业.doc》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、英语原文AndroidApplicationFundamentalsAndroidapplicationsarcwrittenintheJavaprogramminglanguage・TheAndroidSDKtoolscompilethecode一alongwithanydataandresourcefiles一intoanAndroidpackage,anarchivefilewithan.apksuffix.Allthecodeinasingle.apkfileisconsideredtobeon
2、eapplicationandisthefilethatAndroid-powereddevicesusetoinstalltheapplication.Onceinstalledonadevice,eachAndroidapplicationlivesinitsownsecuritysandbox:•TheAndroidoperatingsystemisamulti-userLinuxsysteminwhicheachapplicationisadifferentuser.•Bydefault,the
3、systemassignseachapplicationauniqueLinuxuserID(theIDisusedonlybythesystemandisunknowntotheapplication).ThesystemsetspermissionsforallthefilesinanapplicationsothatonlytheuserIDassignedtothatapplicationcanaccessthem・•Eachprocesshasitsownvirtualmachine(VM),
4、soanapplication'scoderunsinisolationfromotherapplications.•Bydefault,everyapplicationrunsinitsownLinuxprocess・Androidstartstheprocesswhenanyoftheapplication'scomponentsneedtobeexecuted,thenshutsdowntheprocesswhenit'snolongerneededorwhenthesystemmustrecov
5、ermemoryforotherapplications.Inthisway,theAndroidsystemimplementstheprincipleofleastprivilege.Thatis,eachapplication,bydefault,hasaccessonlytothecomponentsthatitrequirestodoitsworkandnomore.Thiscreatesaverysecureenvironmentinwhichanapplicationcannotacces
6、spartsofthesystemforwhichitisnotgivenpermission.However,therearewaysforanapplicationtosharedatawithotherapplicationsandforanapplicationtoaccesssystemservices:•It'spossibletoarrangefortwoapplicationstosharethesameLinuxuserID,inwhichcasetheyareabletoaccess
7、eachother'sfiles.Toconservesystemresources,applicationswiththesameuserIDcanalsoarrangetoruninthesameLinuxprocessandsharethesameVM(theapplicationsmustalsobesignedwiththesamecertificate).•Anapplicationcanrequestpermissiontoaccessdevicedatasuchastheuser'sco
8、ntacts,SMSmessages,themountablestorage(SDcard),camera,Bluetooth,andmore.Allapplicationpermissionsmustbegrantedbytheuseratinstalltime.ThatcoversthebasicsregardinghowanAndroidapplicationexistswithinthesystem.Therestofthisdoc