安卓入门外文翻译资料

 2022-08-22 10:08

CHAPTER 1

Android Overview

In this chapter, you will learn how Android came about. Wersquo;ll take a look at its history to help us understand its future. As this mobile environment enters a make-or-break year, we look at the key players in this ecosystem, what motivates them, and what strengths and weaknesses they bring to the table.

By the end of this chapter, you will better understand the ecosystem from a business point of view, which should help clarify the technology choices and how they relate to long-term advantages for various platforms.

Android Overview

Android is a comprehensive open source platform designed for mobile devices. It is championed by Google and owned by Open Handset Alliance. The goal of the alliance is to “accelerate innovation in mobile and offer consumers a richer, less expensive, and better mobile experience.” Android is the vehicle to do so.

As such, Android is revolutionizing the mobile space. For the first time, it is a truly open platform that separates the hardware from the software that runs on it. This allows for a much larger number of devices to run the same applications and creates a much richer ecosystem for developers and consumers.

Letrsquo;s break down some of these buzz words and see whatrsquo;s behind them.

Comprehensive

Android is a comprehensive platform, which means it is a complete software stack for a mobile device.

For developers, Android provides all the tools and frameworks for developing mobile apps quickly and easily. The Android SDK is all you need to start developing for An- droid; you donrsquo;t even need a physical phone.

For users, Android just works right out of the box. Additionally, users can customize their phone experience substantially.

For manufacturers, it is the complete solution for running their devices. Other than some hardware-specific drivers, Android provides everything else to make their devices work.

Open Source Platform

Android is an open source platform. The entire stack, from low-level Linux modules all the way to native libraries, and from the application framework to complete appli- cations, is totally open.

More so, Android is licensed under business-friendly licenses (Apache/MIT) so that others can freely extend it and use it for variety of purposes. Even some third-party open source libraries that were brought into the Android stack were rewritten under new license terms.

So, as a developer, you have access to the entire platform source code. This allows you to see how the guts of the Android operating system work. As manufacturer, you can easily port Android OS to your specific hardware. You can also add your own propri- etary secret sauce, and you do not have to push it back to the development community if you donrsquo;t want to.

Therersquo;s no need to license Android. You can start using it and modifying it today, and there are no strings attached. More so, Android has many hooks at various levels of the platform, allowing anyone to extend it in unforeseen ways.

There are couple of minor low-level pieces of code that are proprietary to each vendor, such as the software stack for the cellular, WiFi, and Bluetooth radios. Android tries hard to abstract those components with interfaces so that vendor-specific code can be managed easily.

Designed for Mobile Devices

Android is a purpose-built platform for mobile devices. When designing Android, the team looked at which mobile device constraints likely were not going to change for the foreseeable future. For one, mobile devices are battery powered, and battery perform- ance likely is not going to get much better any time soon. Second, the small size of mobile devices means that they will always be limited in terms of memory and speed.

These constraints were taken into consideration from the get-go and were addressed throughout the platform. The result is an overall better user experience.

Android was designed to run on all sorts of physical devices. Android doesnrsquo;t make any assumptions about a devicersquo;s screen size, resolution, chipset, and so on. Its core is designed to be portable.

History

The history of Android is interesting and offers some perspective on what the future might hold.

These are the key events of the past few years:

bull; In 2005, Google buys Android, Inc. The world thinks a “gPhone” is about to come out.

bull; Everything goes quiet for a while.

bull; In 2007, the Open Handset Alliance is announced. Android is officially open sourced.

bull; In 2008, the Android SDK 1.0 is released. The G1 phone, manufactured by HTC

and sold by the wireless carrier T-Mobile USA, follows shortly afterward.

bull; 2009 sees a proliferation of Android-based devices. New versions of the operating system are released: Cupcake (1.5), Donut (1.6), and Eclair (2.0 and 2.1). More than 20 devices run Android.

bull; In 2010, Android is second only to Blackberry as the best-selling smart phone platform. Froyo (Android 2.2) is released and so are more than 60 devices that run it.

In 2005, when Google purchased Android, Inc., the world thought Google was about to enter the smart phone market, and there were widespread speculations about a de- vice called the gPhone.

Googlersquo;s CEO, Eric Schmidt, made it clear right away that Androidrsquo;s ambitions were much larger than a single phone. Instead, they envisioned a platform that would enable many phones and other devices.

Googlersquo;s Motivation

Googlersquo;s motivation for supporting the Android project seems to be having And

剩余内容已隐藏,支付完成后下载完整资料


安卓入门

第1章

安卓系统概述

在本章中,您将学习Android是怎么来的。我们将看看它的历史来帮助我们理解它的未来。作为今年移动环境下进入不成则败的,我们看看这个生态系统的关键点,他们的动机是什么,以及他们带来的优点和缺点。

这一章的最后,你将更好地从商业角度来了解生态系统,这应该有助于澄清技术的选择以及他们如何为各种平台与长期的优势。

安卓系统概述

Android是一个全面的开放源码平台为移动设备设计的。它是由谷歌和倡导开放手机联盟旗下。联盟的目标是“加速创新在移动,为消费者提供更丰富、更便宜、更好的移动体验。“Android是运输工具。

因此,Android是革命性的移动空间。第一次,这是一个真正的开放平台,将硬件与软件运行。这允许更多的设备运行相同的应用程序和为开发者和消费者创造更丰富的生态系统。

让我们打破这些无意义的字或词看看它们身后的一些东西。

完整性

Android是一个全面的平台,这意味着它是一个完整的移动设备的软件堆栈。

对于开发人员来说,Android提供了所有的工具和框架轻松快捷地开发移动应用程序。Android SDK是所有你需要开始开发一个机器人,你甚至不需要一个物理的电话。

对于用户来说,Android是开箱即用的。此外,用户可以定制他们的手机体验。

对于制造商来说,他们的设备运行的完整的解决方案。除了一些特定于硬件驱动程序,Android提供了一切设备工作。

开源平台

安卓是一个开源平台。整个堆栈,从底层Linux模块到本地库,和从应用程序框架来完成应用——阳离子,是完全开放的。

在更大程度上如此,Android是亲商的许可证(Apache /麻省理工学院),以便其他人可以自由扩展它并使用它用于各种各样的目的。甚至一些第三方开源库被带进Android堆栈重写在新许可条款。

所以,作为一名开发人员,您可以访问整个平台源代码。这允许您看到Android操作系统的核心是如何工作的。作为制造商,你可以很容易地Android操作系统移植到你的特定的硬件。您还可以添加自己的专有的秘密武器,你不必把它回开发社区,如果你不想。

没有必要许可Android。你今天可以开始使用和修改它,并没有附加条件。各级,Android有许多钩子的平台,允许任何人以不可预见的方式扩展它。

这里有几个小低级的代码片断,是专有的供应商,如细胞的软件栈,WiFi 和蓝牙无线电。Android力图文摘这些组件接口,特定于供应商的代码很容易管理。

为移动设备而设计

Android是一个专门为移动设备平台。当设计安卓移动设备的限制可能的研究小组是在可预见的未来不会改变。首先,移动设备电池供电,电池执行,情况可能不会获得更好的很快。第二,移动设备的体积小意味着他们永远是有限的内存和速度。

这些约束是考虑从一开始,整个平台解决。结果是一个更好的用户体验。

Android的设计运行在各种各样的物理设备。Android不作任何假设设备的屏幕尺寸、分辨率、芯片组,等等。其核心是设计成可移植。

历史

Android是有趣的历史,提供了一些对未来的看法。

这些都是过去几年的关键事件:

  • 2005年,谷歌购买Android,Inc .世界认为“gPhone”出来。
  • 一切都安静一段时间
  • 2007年,宣布开放手机联盟。Android是开源。
  • 2008年,Android SDK 1.0。G1手机,由HTC制造和销售的无线运营商t - mobile USA,不久之后。
  • 2009你那看到大量的的android手机,操作系统的新版本发布:蛋糕(1.5),甜甜圈(1.6),和闪电(2.0和2.1)。20多个设备运行Android。
  • 2010年,Android是仅次于黑莓作为最畅销的智能手机平台。Android Froyo(2.2)被释放,因此60多个设备,运行它。

在2005年,当谷歌购买Android,Inc .)、世界认为谷歌即将进入智能手机市场,有广泛的de -副称为gPhone的猜测。

谷歌首席执行官埃里克bull;施密特马上明确表示,Android的野心远远大于一个电话。相反,他们设想一个平台,将使许多电话和其他设备。

Google的动机

谷歌的支持Android项目的动机似乎拥有Android无处不在,通过这样做,为移动设备创建一个公平竞争的环境。竞赛的伴侣,谷歌是一家媒体公司,它的商业模式是基于销售乱发广告——这。如果每个人都使用Android,谷歌在其上可以提供额外的服务和公平竞争。这是与其他软件厂商的商业模式取决于许可费。

尽管谷歌许可一些专有应用程序,比如Gmail和地图,并使一些钱Android市场,其主要动机仍然是这些应用带来的广告收入。

开放手机联盟

这是比只是谷歌Android是属于开放手机联盟,一个非盈利组织形成的关键移动运营商、制造商、运营商等。该联盟致力于开放和创新为移动用户体验。

在实践中,该联盟还很年轻,许多成员仍在学习与彼此合作。谷歌是把后面的大部分肌肉Android项目。

第一个版本的Android SDK发布市场上没有一个实际的电话。这样做的意义是,你真的不需要一个Android手机的发展。也有一些例外(硬件传感器、电话等),但在大多数情况下,Android SDK con -锡箔一切你需要对这个平台发展。

Android的版本

像其他软件一样,Android是改善随着时间的推移,这反映在它的版本号。然而,不同的版本号之间的关系可以完全融合。表1解释了这一点。

表1 - 1。Android通过Android 2.3版本

Android version

API level

Nickname

Android 1.0

1

Android 1.1

2

Android 1.5

3

Cupcake

Android 1.6

4

Donut

Android 2.0

5

Eclair

Android 2.01

6

Eclair

Android 2.1

7

Eclair

Android 2.2

8

Froyo (frozen yogurt)

Android 2.3

9

Gingerbread

Android 2.3.3

10

Gingerbread

Android 3.0

11

Honeycomb

Android版本号本身部分讲述了软件平台的主要和次要版本。最重要的是API级别。版本号变化,有时由于api已经改变,有时因为小bug修复或性能改进。

作为应用程序开发人员,您会想要确保你知道哪个应用程序API级别的目标是为了运行。API级别将决定哪些设备可以,不能运行您的应用程序。

通常你的目标是让应用程序尽可能多的设备上运行。因此,考虑到这一点,尽量争取一个API尽可能低的水平。记住在实际设备Android版本的分布。图1 - 1显示的快照Android设备从2010年代中期仪表板。

图1 - 1.2011年1月通过历史Android版本分布

您可能会注意到,没有大量的Android 1.5和1.6的用户。您可能还注意到,没有太多的用户有最新最好的Android 2.3,但2的数量。x用户增长。这是因为每个人都与1.0和1.1在空气(OTA)自动升级了1.5。另一方面,用户仍有安卓1.5和1.6的设备可能将永远无法升级到2。x版本。旧设备没有相关固件,和大多数制造商都没有计划- ning释放固件升级,因为他们忙于工作的新模式。

记住这一点,你可能会选择1.6或2.0,最低发展目标,除非你真的需要最新版本的特性。

总结

Android操作系统而设计的是一个全面的开放源码平台,移动设备。行业的游戏规则的改变者,享受着巨大的成功。

在下一章,我们将看一看整个Android操作系统在高级别上获得技术的了解所有的碎片组合在一起。

第2章

Android的架构

这是9000英尺的Android平台的概述。虽然你关心的是Android应用程序的编写,了解系统的布局将帮助塑造你的理解很容易与Android可以或不能做什么。

最后这一章,你将如何了解整个系统是如何工作的,至少从高水平。

架构概述

Android操作系统就像一个蛋糕组成的各层。每一层都有自己的特点和目的。层不干净地分离但经常互相渗入。

当你阅读这一章,请记住,我只关心大局的整个系统,并将进入细节。图2 - 1显示了部分Android堆栈。

Linux系统

Android是构建在Linux之上的。Linux是一个伟大的操作系统和开放源码的典范。有很多好的理由选择Linux作为Android堆栈的基础。一些主要的是它的可移植性、安全性和功能。

可移植性

Linux是一个便携式的平台,相对容易编译在不同的硬件架构。Linux将Android是一个什么级别的硬件抽象层。通过基于Android在Linux上,我们不必过于担心底层硬件的特性。大多数低级部分Linux可移植的C代码编写的,它允许第三方安卓移植到各种各样的设备。

图2 - 1. Android堆栈

安全性

Linux是一个高度安全的系统,通过一些非常严酷的环境下尝试和测试在过去的几十年里。Android严重依赖于Linux的安全。所有的机器人应用程序作为独立运行的Linux进程和权限设定的Linux系统。因此,Android将许多安全问题传递给底层Linux系统。

丰富的特性

Linux有很多非常有用的特性。Android利用他们中的很多人,比如支持内存管理、电源管理、网络。

本地库

本地库的C / c 库,通常来自开源社区提供必要的Android应用程序服务层。其中,它们包括:

浏览器

快速web视图引擎使用Safari,Chrome等浏览器

数据库

一个全功能的SQL数据库

Apache和谐

一个开源的Java实现

开放图形语言

3d图形库

为网络通信提供安全及数据完整性的一种安全协议

脑安全层

虽然许多这些库按原样使用,一个明显的例外是仿生,基本上是一个重写版本的标准C库。仿生是用于两个原因:

技术

特地为小,电池驱动的设备

许可证

让其他人license-friendly可能想收养它,改变它

GNU libc,默认为Linux C库,李在GPL许可——用香熏,这需要任何更改,您公开发布被推迟到开源社区。因此,它也许不是最亲商开放源码许可当一个公司想要保持他们的衍生品的专有工作。下许可的仿生,另一方面,是一个Apache /麻省理工学院的许可,这并不需要开源衍生作品。

Dalvik 虚拟机

Dalvik虚拟机是一种专用专门为Android开发的丹·波恩斯坦和他的团队在谷歌。

Java虚拟机(VM)是一个放之四海而皆准的解

剩余内容已隐藏,支付完成后下载完整资料


资料编号:[498313],资料为PDF文档或Word文档,PDF文档可免费转换为Word

原文和译文剩余内容已隐藏,您需要先支付 30元 才能查看原文和译文全部内容!立即支付

以上是毕业论文外文翻译,课题毕业论文、任务书、文献综述、开题报告、程序设计、图纸设计等资料可联系客服协助查找。