Android is a software stack for mobile devices that includes an operating system, middleware and key applications. The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language.
Android是针对移动设备的一个软件栈,android包括一个操作系统,一个中间件以及一系列关键的应用。Android SDK提供了用Java编程语言在android平台上开发应用所需的工具和API。
Android架构
The following diagram shows the major components of the Android operating system. Each section is described in more detail below.
下图展示了Android操作系统的主要组件。每个组件在下面有更详细的描述。
================================================
应用程序
Android will ship with a set of core applications including an email client, SMS program, calendar, maps, browser, contacts, and others. All applications are written using the Java programming language.
Android内有一系列的核心应用,包括email客户端,SMS程序,日历,地图,浏览器,电话本及其他。所有的应用都是用Java编程语言写的。
================================================
By providing an open development platform, Android offers developers the ability to build extremely rich and innovative applications. Developers are free to take advantage of the device hardware, access location information, run background services, set alarms, add notifications to the status bar, and much, much more.
通过提供一个开放的开发平台,Android提供给开发者建立极其丰富和创新应用的能力。开发者自由地享有硬件设备的优势,访问本地信息,运行后台服务,设置警示,向状态栏添加通知,还有更多……
Developers have full access to the same framework APIs used by the core applications. The application architecture is designed to simplify the reuse of components; any application can publish its capabilities and any other application may then make use of those capabilities (subject to security constraints enforced by the framework). This same mechanism allows components to be replaced by the user.
开发者能完全访问与核心应用所用的同一个框架APIs。应用架构被设计得能够简化组件的重用;任何应用都可以发布其功能,而其他的应用也就可以使用这些功能(安全限制主题由框架增强)。同样的机制允许用户替换组件。
Underlying all applications is a set of services and systems, including:
在所有的应用之下,有一系列的服务与系统,包括:
Notification Manager
that enables all applications to display custom alerts in the status bar Activity Manager
that manages the lifecycle of applications and provides a common navigation backstack For more details and a walkthrough of an application, see the Notepad Tutorial.
更多细节,和一个应用的演练,请看“记事本教程”。
=================================================
Android includes a set of C/C++ libraries used by various components of the Android system. These capabilities are exposed to developers through the Android application framework. Some of the core libraries are listed below:
Android包括了一个c/c++库的集合,她们被Android系统的众多组件所使用。通过Android的应用框架,这些功能被开放给开发者。其中的一些核心库如下:
===============================================
Android includes a set of core libraries that provides most of the functionality available in the core libraries of the Java programming language.
Android包括一个核心库的集合,她们提供了Java编程语言的核心库中的绝大多数功能。
Every Android application runs in its own process, with its own instance of the Dalvik virtual machine. Dalvik has been written so that a device can run multiple VMs efficiently. The Dalvik VM executes files in the Dalvik Executable (.dex) format which is optimized for minimal memory footprint. The VM is register-based, and runs classes compiled by a Java language compiler that have been transformed into the .dex format by the included "dx" tool.
每一个Android应用都在她自己的进程中运行,该进程也属于某个Dalvik虚拟机的实例。Dalvik被设计成能让设备高效地运行多个虚拟机。Dalvik虚拟机执行的是.dex结尾的Dalvik可执行文件格式,该格式被优化为最小内存使用。虚拟机是基于寄存器的,并且运行那些Java编程语言所编译的类,这些类被内置的dx工具转换为.dex格式。
The Dalvik VM relies on the Linux kernel for underlying functionality such as threading and low-level memory management.
Dalvik虚拟机依赖Linux内核来提供底层的功能,比如线程和低级内存管理。
===============================================
Android relies on Linux version 2.6 for core system services such as security, memory management, process management, network stack, and driver model. The kernel also acts as an abstraction layer between the hardware and the rest of the software stack.
Android依赖Linux 2.6来提供核心系统服务,比如安全、存储管理、进程管理、网络栈和驱动模型。该内核同时扮演着介于硬件和软件栈的其余部分之间的一个抽象层。
(下集预告:框架论题:应用基础)