android官方文档翻译:What is Android.doc_第1页
android官方文档翻译:What is Android.doc_第2页
android官方文档翻译:What is Android.doc_第3页
android官方文档翻译:What is Android.doc_第4页
android官方文档翻译:What is Android.doc_第5页
已阅读5页,还剩5页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

What is AndroidWhat is Android作者:岗版本:1.0版本历史: 2011.07.15 1.0 创建文档目录u编写目的3u定义3u参考资料31Android是什么(翻译版)41.1特性(Features):41.2架构(Architecture)41.3应用程序(Applications)51.4应用程序框架(Application Framework)51.5库( Library)61.6Android Runtime61.7Linux内核(Linux Kernel)62What is Android (原文)7Features7Android Architecture7Applications8Application Framework8Libraries9Android Runtime9Linux Kernel10引言u 编写目的本文档是android官方文档What is Android的中文翻译版。u 定义详见正文u 参考资料android官方文档1 Android是什么(翻译版)Android 是一个适用于移动设备的软件栈,包括操作系统,中间件和核心应用程序。Android SDK 提供了在Android平台上用Java编程语言开发应用程序所必需的工具和API。1.1 特性(Features):l 应用程序框架 提供了可重用和可替换的组件; l Dalvik 虚拟机 一个专门为移动设备优化的虚拟机; l 继承的web浏览器 基于开源WebKit引擎; l 优化过的图形库 包括一个自定义的2D图形库以及基于OpenGL ES 1.0 spec(可使用硬件加速)的3D图像库; l SQLite 用于结构化地数据存储; l 多媒体支持 包括常见的音频、视频和图片格式(MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)l GSM电话(依赖于硬件); l 蓝牙,EDGE,3G,和WiFi(依赖于硬件); l 照相,GPS,指南针,加速器(依赖于硬件); l 丰富的开发环境 包括一个设备模拟器,多个用于调试、检测内存和性能的工具,以及一个Eclipse插件; 1.2 架构(Architecture)下图显示了android操作系统的主要组件,下面的小节将会详细说明每一个组成部分。图1-1 android系统的架构图1.3 应用程序(Applications)android系统本身搭载了一系列的核心应用程序,包括邮件客户端,短信应用,日历,地图,浏览器,联系人等。所有这些应用都是用Java程序语言编写的。1.4 应用程序框架(Application Framework)通过提供一个开放的开发平台,android使得开发者能够构建极其丰富的、创新的应用程序。开发者可以自由的发挥硬件设备的能力,访问位置信息,运行后台服务,设置闹钟(警报?set alarms),向状态栏添加提醒消息,等等。开发者可以使用核心应用程序用到的所有框架API。android系统架构的设计使得组件的重用变得很简单,任何应用可以公开自己,从而使得其他的应用能够复用这些应用的功能(框架会对此施加一定的安全限制)。同样,该机制可以使得用户更换某些组件,以实现相同的功能或者更强的功能。实际上,所有的应用程序都是一组服务(Services)和系统(systems)的集合。包括:l 一组丰富的可扩展的视图(View)集合: 这些视图用来搭建一个应用,包括list, grids, text boxes, buttons , 甚至是内嵌的网页浏览器; l Content Provider(内容提供者):能够使应用访问其他应用的数据(比如联系人信息),或者分享它们自己的数据供其他应用使用; l Resource Manager(资源管理器):提供访问非代码资源的能力,这些资源包括本地化的字符串,图片,以及布局文件等; l Notification Manager(通知管理器):使得应用能够在状态栏显示自己的提醒(alert)消息; l Activity Manager(活动管理器): 管理着应用程序的生命周期,提供了一个通用的navigation backstack。(就是当前活动的activity在栈顶,返回时并不退栈,当资源紧张时,按照优先级,系统自动关闭应用,等等); 1.5 库( Library)android包含了一组被android系统中各个组件调用的c/c+库。这些库的功能通过应用程序框架(application framework)提供给开发者使用。这里列出了一些核心的库:l C库:系统C语言库,标准c语言系统库(libc)的BSD-delivered实现,并且针对移动设备做了调整; l 多媒体库:基于PacketVideo的 OpenCORE,这些库可以支持多种流行的音频和视频格式的播放和录制,同时支持常见的静态图片文件,包括MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG 格式; l Surface Manager:提供对显示子系统的访问,以及对2D和3D应用的无缝支持; l LibWebCore库:一个现代的web浏览器引擎,包括android浏览器和可嵌入的web浏览视图(web view); l SGL库: 2D图像引擎; l 3D library:OpenGL ES 1.0 APIs的一个实现,这个库使用3D加速(硬件允许的话)或者采用高度优化的3D 软件光栅器(software rasterizer); l FreeType库:位图和矢量字库的渲染引擎; l SQLite :一个强大而又轻量级的关系型数据库引擎,适用于所有应用程序1.6 Android Runtimeandroid包含一组核心库用来提供Java编程语言的核心库中的绝大部分功能。每一个android应用都运行在自己的进程中,并且独自占有Dalvik虚拟机的一个实例。一个设备能够同时高效运行多个虚拟机,Dalvik虚拟机执行.dex格式的文件,这种文件被优化过以便使用最少的内存。Dalvik虚拟机是基于寄存器的,能够运行被java编译器编译的类,不过需要先用自带的dx工具将其转化成.dex格式。Dalvik虚拟机需要依赖于Linux内核来实现某些底层功能,譬如线程和内存管理。1.7 Linux内核(Linux Kernel)android系统依赖于Linux 2.6版本来实现一些核心的系统服务,譬如安全、内存管理、进程管理、网络协议栈以及驱动模型。同时,内核也扮演了底层硬件和软件栈的其余部分之间抽象层的角色。 2 What is Android (原文)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.Features Application framework enabling reuse and replacement of components Dalvik virtual machine optimized for mobile devices Integrated browser based on the open source WebKit engine Optimized graphics powered by a custom 2D graphics library; 3D graphics based on the OpenGL ES 1.0 specification (hardware acceleration optional) SQLite for structured data storage Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF) GSM Telephony (hardware dependent) Bluetooth, EDGE, 3G, and WiFi (hardware dependent) Camera, GPS, compass, and accelerometer (hardware dependent) Rich development environment including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE Android ArchitectureThe following diagram shows the major components of the Android operating system. Each section is described in more detail below.ApplicationsAndroid 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.Application FrameworkBy 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. 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.Underlying all applications is a set of services and systems, including: A rich and extensible set of Views that can be used to build an application, including lists, grids, text boxes, buttons, and even an embeddable web browser Content Providers that enable applications to access data from other applications (such as Contacts), or to share their own data A Resource Manager, providing access to non-code resources such as localized strings, graphics, and layout files A Notification Manager that enables all applications to display custom alerts in the status bar An 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.LibrariesAndroid 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: System C library - a BSD-derived implementation of the standard C system library (libc), tuned for embedded Linux-based devices Media Libraries - based on PacketVideos OpenCORE; the libraries support playback and recording of many popular audio and video formats, as well as static image files, including MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG Surface Manager - manages access to the display subsystem and seamlessly composites 2D and 3D graphic layers from multiple applications LibWebCore - a modern web browser engine which powers both the Android browser and an embeddable web view SGL - the underlying 2D graphics engine 3D libraries - an implementation based on OpenGL ES 1.0 APIs; the libraries use either hardware 3D acceleration (where available) or the included, highly optimized 3D software rasterizer FreeType - bitmap and vector font rendering SQLite - a powerful and lightweight relational database engine available to all applications Android RuntimeAndroid includes a set of core libraries that provides most of the functionality available in the core libraries of the Java programming language.Every Android application runs in its own pro

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论