分享好友 最新动态首页 最新动态分类 切换频道
Android 2.2 Platform
2024-12-27 02:27
  1. Platform Highlights
  2. Revisions
  3. API Level
  4. Framework API Changes
  5. Built-in Applications
  6. Locales
  7. Emulator Skins
  1. API Differences Report »
  1. Adding SDK Components

API Level: 8

Android 2.2 Platform

Android 2.2 is a minor platform release including user features, developer features, API changes, and bug fixes. For information on developer features and API changes, see the Framework API section.

For developers, the Android 2.2 platform is available as a downloadable component for the Android SDK. The downloadable platform includes a fully compliant Android library and system image, as well as a set of emulator skins, sample applications, and more. The downloadable platform includes no external libraries.

To get started developing or testing against the Android 2.2 platform, use the Android SDK and AVD Manager tool to download the platform into your SDK. For more information, see Adding SDK Components. If you are new to Android, download the SDK Starter Package first.

For a list of new user features and platform highlights, see the Android 2.2 Platform Highlights document.

The sections below provide notes about successive releases of the Android 2.2 platform component for the Android SDK, as denoted by revision number. To determine what revision(s) of the Android 2.2 platforms are installed in your SDK environment, refer to the "Installed Packages" listing in the Android SDK and AVD Manager.

The Android 2.2 platform delivers an updated version of the framework API. The Android 2.2 API is assigned an integer identifier — 8 — that is stored in the system itself. This identifier, called the "API Level", allows the system to correctly determine whether an application is compatible with the system, prior to installing the application.

To use APIs introduced in Android 2.2 in your application, you need to set the proper value, "8", in the attributes of the element in your application's manifest.

For more information about how to use API Level, see the API Levels document.

The sections below provide information about changes made to the application framework API provided by the Android 2.2 platform.

The Android platform now allows applications to request installation onto the device's external storage media (such as the SD card), as an alternative to installation onto the device's internal memory.

Application developers can express the preferred installation location for their applications by means of a new attribute of in the manifest file, . The attribute supports three values: , , and . At install time, the system checks the value of and installs the application according to the preferred location, if possible. If the application has requested external installation, the system installs it into a private, encrypted partition in the external media. Once an application .apk is installed externally, the system lets the user change the storage location of the .apk and move it onto the device's internal memory if needed (and vice versa), through Manage Applications in the user settings.

By default, the system installs all applications onto the device's internal memory, except for those that explicitly request external installation. This means that the system will always install legacy applications onto internal memory, since they do not have access to the attribute. However, it is possible to configure and compile a legacy application such that it is installed internally on older versions of the platform and externally on Android 2.2 and later platforms, if necessary.

Note that requesting installation onto the device's external media is not suitable for all applications, particularly because the external media may be removable and unmounting/remounting may disrupt the user experience and system settings.

For more information about setting a preferred install location for your application, including a discussion of what types of applications should and should not request external installation, please read the App Install Location document.

The platform now provides a generalized backup service that applications can use to backup and restore user data, to ensure that users can maintain their data when switching devices or reinstalling the application. The Backup Manager handles the work of transporting the application data to and from the backup storage area in the cloud. The Backup Manager can store any type of data, from arbitrary data to files, and manages backup and restore operations in an atomic manner. For more information, see Data Backup.

  • New OpenGL ES 2.0 APIs in .
  • New , , and classes and utility methods for using ETC1 for texture compression.
  • New class.
  • New to enable compression from YUV to JPEG and manipulation of YUV data.
  • New APIs in for managing audio focus, transport control, transient loss of audio focus, ducking.
  • New broadcast intent for routing audio to SCO — with extras indicating new state.
  • New APIs in to detect completion of sound-loading.
  • New APIs in for auto pause and resume.
  • New APIs in for specifying audio settings for number of channels, encoding and sampling rates, sampling rate.
  • New APIs for adding files to the media database, so that they are automatically scanned. See and .
  • The platform provides new speech-recognition APIs that allow applications to have a richer interaction with the available voice recognizer. For example, the APIs are sufficient to integrate voice recognition deeply into an IME.
  • The platform also provides a base class that lets third-party developers create plug-in recognition engines.
  • New interface to receive callbacks.
  • New extras that let a requester app specify details as preferred language, minimum length in milliseconds, and so on.
  • Changes to camera preview API to improve efficieny of preview pipeline.
  • New display orientation for camera (it can now work in portrait orientation).
  • New APIs in for managing zoom level.
  • New APIs for querying and setting device camera settings such as focal length, exposure, zoom level, view angle, and others.
  • New utility for video and image thumbnails.
  • New and classes enable apps to determine device hardware camera capablities.
  • New support in for retrieving GPS and focal length.

New device policy management APIs allow developers to write "device administrator" applications that can control security features of the device, such as the minimum password strength, data wipe, and so on. Users can select the administrators that are enabled on their devices. For more information, see the classees or the example application code in DeviceAdminSample.java.

  • New UI modes "car mode" and "night mode" and let applications adjust their application UI for specific user modes.
  • New that lets Views detect and handle transformation gestures that involve more than one pointer (multitouch) using the supplied MotionEvents.
  • Improvements in the way that multitouch events are reported in objects.
  • The layout attribute is renamed to . This affects both XML and Java code (see ). Note that the platform will continue to honor uses of in legacy applications.
  • New layout attributes , , and let developers customize the bottom strip of TabWidgets.
  • Better support for managed dialogs in Activity.
  • New method lets you schedule a periodic sync with a specific account, authority, and extras at the given frequency.
  • For specifying the application's preferred install location (see App Installation on External Storage Media, above):
    • New attribute of the element. Specifies the default install location defined by an application.
  • For managing user data backup (see Backup manager, above, for more information):
    • New attribute of the element. Specifies the component name of the BackupAgent subclass provided by the application to handle backup/restore operations, if any.
    • New attribute of the element. Boolean value that indicates whether the application is prepared to attempt a restore of any backed-up dataset, even if the backup is apparently from a newer version of the application than is currently installed on the device.
  • For managing the platform's JIT compiler:
    • New attribute of the element. Boolean value that specifies whether to disable JIT compiler optimizations when running the application.
  • — Any device administration broadcast receiver must require this permission, to ensure that only the system can interact with it.
  • — Allows an application to call .
  • — Any must require this permission, to ensure that only the system can interact with it.
  • — Allows an application to set the system time.

For a detailed view of all API changes in Android 2.2 (API Level 8), see the API Differences Report.

The system image included in the downloadable platform provides these built-in applications:

  • Alarm Clock
  • Browser
  • Calculator
  • Camera
  • Contacts
  • Custom Locale (developer app)
  • Dev Tools (developer app)
  • Email
  • Gallery
  • IMEs for Japanese, Chinese, and Latin text input
  • Messaging
  • Music
  • Phone
  • Settings
  • Spare Parts (developer app)

The system image included in the downloadable platform provides a variety of built-in locales. In some cases, region-specific strings are available for the locales. In other cases, a default version of the language is used. The languages that are available in the Android 2.2 system image are listed below (with language_country/region locale descriptor).

  • Chinese, PRC (zh_CN)
  • Chinese, Taiwan (zh_TW)
  • Czech (cs_CZ)
  • Dutch, Netherlands (nl_NL)
  • Dutch, Belgium (nl_BE)
  • English, US (en_US)
  • English, Britain (en_GB)
  • English, Canada (en_CA)
  • English, Australia (en_AU)
  • English, New Zealand (en_NZ)
  • English, Singapore(en_SG)
  • French, France (fr_FR)
  • French, Belgium (fr_BE)
  • French, Canada (fr_CA)
  • French, Switzerland (fr_CH)
  • German, Germany (de_DE)
  • German, Austria (de_AT)
  • German, Switzerland (de_CH)
  • German, Liechtenstein (de_LI)
  • Italian, Italy (it_IT)
  • Italian, Switzerland (it_CH)
  • Japanese (ja_JP)
  • Korean (ko_KR)
  • Polish (pl_PL)
  • Russian (ru_RU)
  • Spanish (es_ES)
  • Localized UI strings match the locales that are accessible through Settings.

    The downloadable platform includes a set of emulator skins that you can use for modeling your application in different screen sizes and resolutions. The emulator skins are:

    • QVGA (240x320, low density, small screen)
    • WQVGA (240x400, low density, normal screen)
    • FWQVGA (240x432, low density, normal screen)
    • HVGA (320x480, medium density, normal screen)
    • WVGA800 (480x800, high density, normal screen)
    • WVGA854 (480x854 high density, normal screen)
    最新文章
    非华为电脑管家 V11.1.6.30 汉客儿版免费软件全功能绿色商业破解版注册码下载
    非华为电脑管家 V11.1.6.30 汉客儿版免费软件宁缺见识多(见多识广)果实累累毋滥32. 在我们的城市里,夏季上演得太长,秋色就不免出场得晚些。但秋实永远不会被混淆的——这坚硬明朗的金属季。让我们从微凉的松风中去任取,让我们从新刈的
    苹果采集插件全套教程-苹果cmsV10采集插件
    最近几年随着互联网时代的发展,做电影网站的站长越来越多了,加入此行列的人也是与日俱增!但是很多站长都是跟风来做电影站的,怎么做一点思路都没有。电影资源都不知道怎么来的。今天就教大家怎么做好电影站,文章有点长请大家耐心观看,
    【纵深推进“三抓三促”行动】庄浪:解难题办实事暖人心
      原标题:【纵深推进“三抓三促”行动】庄浪:解难题办实事暖人心  新甘肃·甘肃日报记者 田丽媛  窗外,雪花飞舞;室内,温暖如春。  “今年暖气真暖和!”说起今冬供暖,家住庄浪县朝阳社区水利小区的李明月老人感慨地说。  
    天眼3D高清卫星地图下载
    下载天眼3D高清卫星地图到手机上面的方法有很多。 安卓系统的手机可以在豌豆荚或者PP助手等手机助手里面一键下载安装!也可以通过电脑端用手机扫描天眼3D高清卫星地图下载的二维码获取下载链接!有手机端直接访问网页下载也是可以的,下面
    预测模型自变量太多怎么筛选?这篇Lancet子刊如何从249个变量筛出11个
    基于传统危险因素的风险预测模型虽然也能够有效的区分未来低风险和高风险的个体,但由于缺乏特异性和对复杂风险因素的不完整描述,临床适用性受到限制。因此越来越多的学者引入蛋白质组学、循环代谢物等分子层面信息作为预测因子提高模型的
    营口SEO推广收费揭秘,解析奥秘与明智选择之道
    营口SEO推广收费标准揭秘:本文深入剖析营口SEO推广行业收费规则,揭示行业奥秘,为企业和个人提供合理选择SEO推广服务的指南。通过对比分析,助您了解费用构成,避免陷入陷阱,实现高效SEO推广。随着互联网的快速发展,越来越多的企业开始
    百度上网页快照是什么意思(网站图片优化主要方法)
    在做网络推广网站优化的过程中,网站快照也是对网站优化的一大评判标准,针对网站快照也可以了解到有关网站的一些状态和信息,来对网站进行更及时合理的优化调整,下面就跟随做网络推广一起来看一下。1、通过快照可了解搜索引擎抓取频次通
    搜狗搜索优化策略,如何提升网站搜狗搜索引擎排名?
    在这个信息爆炸的时代,每一个网站都渴望在搜索引擎中脱颖而出,吸引更多的目光和流量。而我,作为一名在SEO领域摸爬滚打多年的从业者,深知搜狗搜索引擎优化的重要性。搜狗搜索,凭借其强大的自然语言处理和机器学习能力,不断优化搜索算
    跳转微信链接转化率高达80%的引流工具
    据不完全数据统计,截止近些年,智能手机逐渐走入了千家万户,覆盖了全国超过90%以上的用户,成为绝大多数人士在工作上或者生活中不可或缺的一个部分。随着互联网社交技术的更新换代,微信的平台功能模块日趋健全,服务于更加广阔的商家和
    桌面虚拟化 免费云桌面系统 云电脑租用 YL135 禹龙 办公云终端服务器
    桌面虚拟化 免费云桌面系统 云电脑租用 云终端解决方案 虚拟化服务商一、云桌面介绍云桌面是完全符合云计算特征的一种云形态,也是云计算最主要的落地方式之一。桌面云的定义是:“可以通过瘦客户端或者其他任何与网络相连的设备(普通PC、
    相关文章
    推荐文章
    发表评论
    0评