安卓系统概述外文翻译资料

 2022-05-23 09:05

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.

1

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 Android

everywhere and by doing that, creating a level playing field

全文共29375字,剩余内容已隐藏,支付完成后下载完整资料


安卓系统概述

在本章中,您将了解Android是如何实现的。我们来看看它的历史。

帮助我们了解它的未来。当这个移动环境进入一个成败的时候。我们看看这个生态系统中的关键人物,是什么激励着他们,以及什么。他们带来的优势和劣势。到本章结束时,您将更好地了解企业的生态系统。观点,这应该有助于澄清技术选择和它们之间的关系。各种平台的长期优势。

安卓系统概述

Android是一个为移动设备设计的综合性开源平台。它是由谷歌支持,由开放手机联盟拥有。联盟的目标。是“加速移动领域的创新,为消费者提供更丰富、更便宜的产品?”更好的移动体验。Android是实现这一目标的工具。因此,Android正在革新移动领域。这是第一次,这是真的。开放平台将硬件和运行在它上面的软件分开。这允许要运行相同的应用程序并创建大量的设备,需要大量的设备。为开发者和消费者提供更丰富的生态系统。让我们来分析下这些术语,看看它们背后有什么。全面的

Android是一个全面的平台,这意味着它是一个完整的软件栈。一个移动设备。对于开发人员来说,Android提供了开发移动设备的所有工具和框架。快速轻松地应用。Android SDK是你开始开发的全部。机器人;你甚至不需要一个物理电话。

对于用户来说,Android就是直接从盒子里出来。此外,用户可以定制手机的经验。对于制造商来说,它是运行设备的完整解决方案。除了一些硬件特定的驱动程序,Android提供了其他一切来制造他们的设备。

开源平台

Android是一个开源平台。整个堆栈,从低级的Linux模块。一直到本地库,从应用程序框架到完整的appli。阳离子,是完全开放的。更重要的是,Android在商业友好的许可下(Apache/MIT)获得许可。其他人可以自由地扩展它并用于各种目的。甚至一些第三方在Android栈中引入的开源库被重写了。新许可条款。因此,作为开发人员,您可以访问整个平台源代码。这允许您来看看Android操作系统的核心是如何工作的。作为制造商,你可以轻松地将Android操作系统移植到您的特定硬件上。你也可以添加自己的propri -而你不需要把它推回到开发社区。如果你不想。没有必要使用Android。您可以在今天开始使用它并修改它。没有附加条件。更重要的是,Android有许多不同层次的挂钩。平台,允许任何人以不可预见的方式扩展它。有一些低级的低级代码是专有的。对于每个供应商,比如手机的软件栈,WiFi,和。蓝牙无线电。Android试图将这些组件抽象出来。接口使特定于供应商的代码可以轻松地管理。为移动设备设计

Android是移动设备的专用平台。安卓系统在设计研究小组研究了哪些移动设备的限制可能不会改变。在可预见的未来。首先,移动设备是电池供电的,而电池则是。很可能短期内不会有什么好转。第二,小尺寸的。移动设备意味着它们在内存和速度方面总是受到限制。一开始就考虑到这些限制,并加以处理。在整个平台。其结果是总体上更好的用户体验。Android的设计初衷是在各种物理设备上运行。Android不会让对设备的屏幕大小、分辨率、芯片组等的任何假设。其核心是便携式设计。

历史

Android的历史很有趣,并为未来提供了一些视角。

可能持有。这些是过去几年的关键事件:

bull;2005年,谷歌收购了安卓(Android)公司,世界认为“gPhone”即将到来。

bull;2007年,开放手机联盟宣布。Android正式开放

bull;2008年,Android SDK 1.0发布。G1手机,由HTC制造。之后不久,由无线运营商T-Mobile USA销售。

bull;2009年,android设备出现了激增。新版本的操作。系统发布:Cupcake (1.5), Donut (1.6), Eclair(2.0和2.1)。更多的20个设备运行Android。

bull;2010年,Android仅次于黑莓,成为最畅销的智能手机。平台。Froyo (Android 2.2)被发布,因此有60多个设备。运行它。

2005年,当谷歌收购了安卓(Android)公司时,全世界都认为谷歌是关于它的。进入智能手机市场。

谷歌的首席执行官埃里克·施密特(Eric Schmidt)明确表示,Android的野心是显而易见的。

比一个手机大得多。相反,他们设想了一个能够实现的平台。许多手机和其他设备。

谷歌的动机谷歌支持Android项目的动机似乎是Android。在任何地方,通过这样做,为移动设备创建一个公平的竞争环境。竞赛mately,谷歌是一家媒体公司,其商业模式是基于出售adver。如果每个人都使用Android,那么谷歌可以提供额外的服务。公平竞争。这与其他软件供应商的商业模式不同。谁依赖于许可证费用。虽然谷歌确实授权一些专有的应用程序,如Gmail和Maps,以及。在Android市场上赚到一些钱,它的主要动机仍然是adver。这些应用带来的收入。

总结

Android操作系统的设计初衷是为了全面。

用于移动设备的开源平台。这是行业内的游戏规则改变者。享受着巨大的成功。

在下一章中,我们将会看到整个Android操作系统的高度。水平,以获得技术上的理解,如何把所有的部分组合在一起。

堆栈

这是Android平台的9000英尺的概述。虽然你关心主要是编写Android应用程序,了解系统的布局。对你能做什么或不容易做什么有帮助吗?

Android。

在本章的最后,您将了解整个系统是如何工作的,至少是这样。高水平。

堆栈的概述

Android操作系统就像一个由不同层组成的蛋糕。每一层有它本身的特点和目的。这些层不是干净的分开的,而是经常渗出的。在一起。

-

Android是建立在Linux之上的。Linux是一个伟大的操作系统和典范。的开源的。选择Linux作为基础的原因有很多。Android堆栈。其中一些主要是它的可移植性、安全性和特性。可移植性Linux是一个可移植的平台,在各种硬件上都比较容易编译。架构。Linux带给Android的是一个硬件抽象级别。通过基于Linux的Android,我们不必过于担心底层硬件。特性。Linux的大部分底层都是用相当便携的C代码编写的,它允许第三方将Android移植到各种设备上。应用程序框架应用程序框架是一个提供大量服务的丰富环境。帮助你,应用程序开发人员,完成你的工作。这是最好的文档。广泛覆盖的部分平台,因为它是这一层,赋予了devel-。在市场上发挥创意并带来出色的应用。在应用程序框架层中,您将特别发现大量的Java库。构建Android。您还将发现提供eco-的许多服务(或管理器)。您的应用程序可以使用的功能系统,例如位置、传感器、WiFi,电话,等等。应用程序框架| 11当您探索Android应用程序开发时,您的大部分重点将放在这上面。部分堆栈,您将使用许多应用程序框架。

组件。

应用程序,最后,还有您和其他开发人员创建的应用程序。这些应用程序是最终用户发现Android有价值的地方。他们能来压平布面方法-在该设备上停滞不前,或者可以从众多安卓市场之一下载。

APK文件

应用程序是一个单独的应用程序包(APK)文件。APK文件大致有3个。主要组件。一个API由以下主要组件组成:

Dalvik可执行

这是编译到Dalvik可执行文件的所有Java源代码。这是运行应用程序的代码。

资源资源是所有不是代码的东西。您的应用程序可能包含一个数字。图像和音频/视频剪辑,以及许多描述布局的XML文件,语言包,等等。总的来说,这些项目是资源。

本地库

您的应用程序可能包含一些本机代码,例如C/ c li。高校。这些库可以与您的APK文件一起打包。应用程序签名Android应用程序必须在安装在设备上之前签署。开发目的,我们将用一个调试键- a来签署我们的示例应用程序。在开发平台上已经拥有的密钥。然而,当您distrib -你在商业上的应用,你会想用你自己的钥匙签名。Android开发者文档标题为“签署你的应用程序”有详细信息。

应用分布

Android与其他平台截然不同的一种方式是发行版。

它的应用程序。在大多数其他平台上,比如iPhone,一个单一的供应商拥有垄断地位。关于应用程序的分布。在Android上,有很多不同的商店,或者。市场。每个市场都有自己的一套政策。收入分成两部分,等等。因此,Android更像是一个自由的市场空间。在哪些供应商竞争业务。

第2章|第二章:堆栈。

实际上,目前最大的市场是由谷歌运营的Android market。目前尚不清楚

谷歌是否意味着在其他商店发展或计划的同时,在市场空间播种。使之成为有利可图的事业。

应用程序也可以通过Web分发。当您下载APK文件时。从一个网站到浏览器,由APK文件表示的应用程序是。在你的手机上自动安装。那么病毒、恶意软件、间谍软件和其他不好的东西呢?

由于其分散的应用程序分配系统,它当然是可能的。不知情的用户下载恶意应用程序,从而做坏事。例如,有报道称通过虚假银行应用程序进行网络钓鱼攻击。所以,Android将它留给市场来解决它。最终,会有商店。这是更有信誉的,而那些不是这样的,至少在理论上是这样。谷歌依赖用户报告支持其Android市场,但其他商店可能会选择做更多。主动的测试和提高在第一时间进入商店的酒吧。

总结

在这一章中,你得到了一个关于Android操作系统的概览。系统及其各个部分如何组合在一起。你现在明白了什么使-。droid是如此完整、开放和吸引开发者。在下一章中,我们将讨论如何设置您的开发环境。能迅速地达到速度。我们还将查看一个简单的Hello World应用程序。剖析它,帮助您了解Android应用程序的各个部分。

快速启动

在本章中,您将学习如何设置Android开发环境。表示“状态”。我将超越仅仅列出您可以下载软件的地方,并将涵盖。一些最佳实践的建立。我将研究开发操作系统。选择以及可用的Android工具。你会看到好的,坏的,和。丑陋的各种工具和平台的选择,你将要做的(或那一些-。还有一个已经为你做了。到本章结束时,您将建立完整的开发环境。您将能够编写Hello World应用程序,构建它,并在模拟器上运行它。或者是一个物理设备,如果你想的话)。我将使用~来引用您的主目录。在Mac OS X上。通常类似/用户/马克。在Linux上,它是/home/。马克,在Windows Vista和7日C:\Users\marko(在Windows XP中,这将是C:\Documents and Settings\ marko)。还有,我要用。使用unix风格的前斜杠,而不是Windows反斜杠来表示文件。路径分隔符。所以,如果你在Windows上,只是改变~ C:\Users\ YourUserName/ \。除此之外,一切都应该有很大的不同。

安装Android SDK

Android软件开发工具包(SDK)是开发应用程序所需的全部内容。

Android。SDK附带了一组工具和一个运行它的平台。

这一切工作。您可以从您的特定平台下载Android SDK。

Android SDK下载页面。

15

一旦你下载了它,解压缩(或者在Linux上,untar)就会进入一个很容易到达的文件夹。

书中进一步的例子将假设您的SDK位于文件夹~/android-sdk中。如果

它位于不同的位置,使用那个位置而不是~/android-sdk。例如:

窗户

C:\ apps \ android-sdk-windows

Linux

/home/YourUserName / android-sdk-linux_86

Mac OS X

/用户/ YourUserName / android-sdk-mac_86

对于Windows用户,我强烈建议选择没有的目录。

空间。这是因为我们将在命令中执行任务。线条和空间让事情变得复杂。因为Windows XP home。目录在C:\文档和设置中,我推荐使用。在您创建的顶级目录中使用android-sdk,比如C:\apps。然而,在Windows Vista或7中,你可以简单地提取android-sdk。到C:\Users\ YourUserName。设置工具的路径。Android SDK有一个包含所有主要工具的文件夹。因为我们要用。

这些工具来自命令行,它非常有助于添加您的~/android-sdk/工具/。而你的~/android-skd/平台工具/目录到你的系统路径变量。这不需要导航到特定的工具,就可以更容易地访问您的工具吗?每一次位置。设置路径变量的详细信息取决于平台;参见“记录”的第2步。

“安装Android SDK”。

安装Eclipse

Eclipse是IBM最初创建的编程工具的开源集合。

对于Java。现在,大多数Java社区的开发人员都喜欢Eclipse。选择的集成开发环境(IDE)。Eclipse住在http://eclipse.org。Eclipse有很多节省时间的特性,我将在继续进行时指出。保持

请记住,尽管Eclipse功能强大,但它往往非常消耗资源,所以您。

如果它开始运行缓慢,可能需要每天重启一次。

虽然您可以使用任何喜爱的文本编辑器或集成的方式进行Android开发。

开发环境(IDE),大多数开发人员似乎

全文共9997字,剩余内容已隐藏,支付完成后下载完整资料


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

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

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