Android applications are written in the Java programming language. The compiled Java code — along with any data and resource files required by the application — is bundled by the aapt tool into an Android package, an archive file marked by an .apk suffix《翻译:Android应用由Java代码编写,编译生成的Java字节代码和相关的数据或资源文件被打包成一个后缀是apk的归档文件》. This file is the vehicle for distributing the application and installing it on mobile devices; it's the file users download to their devices. All the code in a single .apk file is considered to be one application.
In many ways, each Android application lives in its own world:翻译:大多数情况下,每个Android应用生存在自身世界中
By default, every application runs in its own Linux process. Android starts the process when any of the application's code needs to be executed, and shuts down the process when it's no longer needed and system resources are required by other applications.《翻译:默认场合,每个Android应用都将运行在自己独立的Linux进程中,一旦某个应用中的某段代码需要被执行,Android系统将启动一个Linux进程。对于被启动的Linux进程,Android系统也会在不需要该进程的时候或是系统资源需要被其他应用占用的时候关闭已启动的Linux进程。》
Each process has its own virtual machine (VM), so application code runs in isolation from the code of all other applications.《翻译:每个Linux进程拥有自己的虚拟机,所以所有的应用程序在运行过程中是相互隔离的。》
By default, each application is assigned a unique Linux user ID. Permissions are set so that the application's files are visible only to that user and only to the application itself — although there are ways to export them to other applications as well.《翻译:默认场合,每个应用都被系统分配一个唯一的Linux用户ID,该应用所关联的所有文件只能被该user ID所见,尽管是有办法可以使得多个应用可以共享资源或数据文件。》
It's possible to arrange for two applications to share the same user ID, in which case they will be able to see each other's files. To conserve system resources, applications with the same ID can also arrange to run in the same Linux process, sharing the same VM.《翻译:要使得两个应用程序共享同一个Linux user ID也是可能的,一旦这样,那么两个应用就可以共享资源文件,这时候还可以使得两个应用在同一个Linux进程中运行,共享使用同一个虚拟机。》
In many ways, each Android application lives in its own world:翻译:大多数情况下,每个Android应用生存在自身世界中
By default, every application runs in its own Linux process. Android starts the process when any of the application's code needs to be executed, and shuts down the process when it's no longer needed and system resources are required by other applications.《翻译:默认场合,每个Android应用都将运行在自己独立的Linux进程中,一旦某个应用中的某段代码需要被执行,Android系统将启动一个Linux进程。对于被启动的Linux进程,Android系统也会在不需要该进程的时候或是系统资源需要被其他应用占用的时候关闭已启动的Linux进程。》
Each process has its own virtual machine (VM), so application code runs in isolation from the code of all other applications.《翻译:每个Linux进程拥有自己的虚拟机,所以所有的应用程序在运行过程中是相互隔离的。》
By default, each application is assigned a unique Linux user ID. Permissions are set so that the application's files are visible only to that user and only to the application itself — although there are ways to export them to other applications as well.《翻译:默认场合,每个应用都被系统分配一个唯一的Linux用户ID,该应用所关联的所有文件只能被该user ID所见,尽管是有办法可以使得多个应用可以共享资源或数据文件。》
It's possible to arrange for two applications to share the same user ID, in which case they will be able to see each other's files. To conserve system resources, applications with the same ID can also arrange to run in the same Linux process, sharing the same VM.《翻译:要使得两个应用程序共享同一个Linux user ID也是可能的,一旦这样,那么两个应用就可以共享资源文件,这时候还可以使得两个应用在同一个Linux进程中运行,共享使用同一个虚拟机。》
发表评论
-
Intents and Intent Filters--Intent filters
2010-09-03 10:21 1367Intent filters To inform ... -
Intents and Intent Filters---Intent Resolution
2010-09-03 09:45 1201Intent Resolution Intents 可以分成 ... -
Intents and Intent Filters---Intent Objects
2010-09-02 11:15 821Intent Objects An Intent ... -
Intents and Intent Filters---序言
2010-09-01 16:06 879Intents and Intent Filters Key ... -
Application Fundamentals--Processes and lifecycles(进程生命周期)
2010-08-30 09:23 762Processes and lifecycles---进 ... -
Application Fundamentals--Broadcast receiver lifecycle(广播接收组件生命周期)
2010-08-30 09:20 4248Broadcast receiver lifecycle--- ... -
Application Fundamentals--Service lifecycle(服务组件的生命周期)
2010-08-30 09:18 1054Service lifecycle--服务组件的生命周期 A ... -
Application Fundamentals--Coordinating activities(activity实例间协调)
2010-08-30 09:15 972Coordinating activities---activ ... -
Application Fundamentals--Saving activity state(保存activity实例的状态信息)
2010-08-27 10:06 1262Saving activity state--保存activi ... -
Application Fundamentals--Component Lifecycles(组件生命周期)
2010-08-27 09:56 964Component Lifecycles--组件生命周期 A ... -
Application Fundamentals--Thread-safe methods(线程安全方法)
2010-08-27 09:51 1259Thread-safe methods--线程安 ... -
Application Fundamentals--Remote procedure calls(远程过程调用)
2010-08-27 09:41 1300Remote procedure calls--远程过程调用 ... -
Application Fundamentals--Processes and Threads(进程与线程)
2010-08-27 09:36 996Processes and Threads--进程 ... -
Application Fundamentals--Starting tasks
2010-08-27 09:34 704Starting tasks An activity is ... -
Application Fundamentals--Clearing the stack(堆栈清理)
2010-08-27 09:28 1351Clearing the stack--堆栈清理 If th ... -
Application Fundamentals--Launch modes-启动模式
2010-08-27 09:27 1120Launch modes-启动模式 There are fo ... -
Application Fundamentals--Affinities and new tasks
2010-08-27 08:45 983Affinities and new tasks By de ... -
Application Fundamentals--Activities and Tasks
2010-08-27 08:42 794Activities and Tasks As noted ... -
Application Fundamentals--Intent 过滤器
2010-08-27 08:41 926Intent 过滤器 Intent 对象可以显式指定目标组件 ... -
Application Fundamentals--The manifest file
2010-08-27 08:40 792The manifest file Android启动应用程 ...
相关推荐
文档是android开发平台系统文档Application Fundamentals的翻译。
DB2 9 Database and Application Fundamentals - Academic Initiative 000-302 2011年12月版本 V8.02 Q188道。
Android开发基础概念
gnu c库的应用接口.权威,比较新的版本.就是glibc的应用编程接口.此为第一卷,第二卷也在本站.
Application Fundamentals——应用程序基础知识
外文翻译-android application fundamentals
F5-Application Delivery Fundamentals
VCSEL fundamentals, technology and application This chapter attempts to briefly review the research history of verticalcavity surface-emitting lasers (VCSELs). Based on the contents of previous ...
Application Developer's Guide - Fundamentals.PDF,关于PL/SQL存储过程、包等内容的,有兴趣的可以参考下。文档质量很好。
Oracle Database Application Developers Guide - Fundamentals 10g Release 2 (10.2).pdf
Real Time Digital Signal Processing Fundamentals, Implementation and Application, 3rd Ed 矢量PDF 非扫描
有关实现同时符合POSIX和OPEN / X的标准GNU C库的全面指南。
Fundamentals of the SAP Web Application Server
压缩包资料列表: 1、ug103-01-fundamentals-wireless-network 2、ug103-02-fundamentals-zigbee 3、ug103-03-fundamentals-design-choices
Fundamentals Of Microelectronics
Fundamentals of Massive MIMO
Fundamentals of Computer Graphics 4th Edition 英文高清版
101 – Application Delivery Fundamentals, 汇总整理了最近的考试题目。
Cisco - Application Acceleration and WAN Optimization Fundamentals(Jul.2007).chm
Application Developer's Guide - Fundamentals see how to work with developing Oracle Datebase