分享好友 最新动态首页 最新动态分类 切换频道
Android 2.1 Platform
2024-12-27 03:36
  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: 7

Android 2.1 Platform

Android 2.1 is a minor platform release deployable to Android-powered handsets starting in January 2010. This release includes new API changes and bug fixes. For information on changes, see the Framework API section.

For developers, the Android 2.1 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.1 platform, use the Android SDK and AVD Manager tool to download the platform into your SDK. For more information, see Adding SDK Components.

Android 2.1 does not add significant user features, see the Android 2.0 Platform Highlights document for the latest user features.

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

The Android 2.1 platform delivers an updated version of the framework API. The Android 2.1 API is assigned an integer identifier — 7 — 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.1 in your application, you need to set the proper value, "7", 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.1 platform.

The following additions provide APIs for you to develop animated wallpapers:

  • New package.
  • New class.
  • Updated .

Additionally, if your application uses or provides Live Wallpapers, you must remember to add a element to the application's manifest, declaring the attribute . For example:

When you've published your application, Google Play checks for the presence of this element and uses it as a filter, ensuring that your application is not made available to users whose devices do not support Live Wallpapers.

  • New class provides information about the device's current network signal. This can be acquired from the new callback.
  • New callback.
  • New methods and .
  • New methods and .
  • New methods and .
  • New methods to manipulate web storage databases.
  • New methods to get Geolocation permissions from, and set them on the WebView.
  • New methods to manage settings for app cache, web storage, and zooming based on screen density.
  • New methods for handling video, browsing history, custom Views, app cache limits, and more.

For a detailed view of all API changes in Android 2.1 (API Level 7), as compared to API Level 6, 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.1 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)
    最新文章
    吉林SEO优化攻略,全方位解析,轻松提升网站排名
    吉林SEO优化,全方位解析使用方法,助您网站排名快速提升。掌握核心策略,优化网站结构,提升关键词排名,提高网站流量,助力企业在线营销成功!随着互联网的快速发展,网站优化已经成为企业提升品牌知名度、提高市场份额的重要手段,SEO(
    济南搜狗SEO优化,助力企业抢占搜索引擎市场制高点
    随着互联网的普及,搜索引擎已经成为人们获取信息、了解世界的重要渠道。在众多搜索引擎中,搜狗凭借其强大的搜索技术、精准的搜索结果以及庞大的用户群体,在搜索引擎市场中占据着举足轻重的地位。对于济南的企业来说,如何进行搜狗SEO,
    word怎么转ppt?这个在线转换工具轻松搞定!
    在日常的学习和工作中,Microsoft Word和PowerPoint是我们最常使用的2款。Word,拥有出色的文字处理功能,让我们能够轻松编辑各种文档,而PowerPoint,可以让我们轻松地进行各种演示文稿的创建和播放。在实际使用过程中,我们往往需要将已
    淘宝卖家聊天技巧
    淘宝卖家聊天技巧  淘宝网是亚太地区较大的网络零售、商圈,由阿里巴巴集团在2003年5月创立。淘宝网是中国深受欢迎的网购零售平台,拥有近5亿的注册用户数,每天有超过6000万的固定访客,同时每天的在线商品数已经超过了8亿件,平均每分
    萍乡谷歌SEO专家助力企业网络营销高地
    萍乡谷歌SEO公司专注于为企业提供高效SEO服务,助力企业优化谷歌搜索引擎排名,迅速抢占互联网市场制高点,提升品牌知名度和竞争力。通过专业技术和策略,助力企业实现全球化市场拓展。随着互联网的快速发展,越来越多的企业开始意识到的重
    Xiaomi Mi Unlock Tool: Download and How to use it to Unlock Bootloader
    Through this post, you can download the latest Xiaomi Mi Unlock Tool, along with all the previous versions. Further, we will also guide you on how to use the Mi Unlock Tool to unlock the bootloader on Xiaomi, Redmi, and Po
    营销信息网站排名优化,策略与实践,营销信息网站排名优化方案
    营销信息网站排名优化,策略与实践,是提升网站在搜索引擎中排名的关键步骤。通过优化网站内容、关键词、链接等,提高网站质量和用户体验,从而吸引更多潜在客户。需要关注竞争对手的动态,不断调整优化策略,保持网站的竞争优势。实践表明
    项目记录:C语言学生成绩排名程序
      一个很简单的小项目,大一的学生作业。我简单介绍一下相关功能和代码之类的吧~  本来题目不强制要求菜单的,我有点强迫症加了菜单。【1】题目:   一个班40名学生,期末有10门课程成绩,要求计算并输出
    用AI绘画生成超逼真美女写真,简单易上手的工具评测与教程
    5. Runway ML Runway ML是一款提供多种创意工具的AI平台,用户可以利用其强大的功能进行视频编辑、图像生成甚至生成式图像处理。在生成美女写真方面,Runway ML允许用户上传参考图像进行修改,非常适合有一定艺术背景的用户。不过,操作界
    豹猫怕不怕冷
    豹猫对寒冷的适应能力较强,但仍然需要注意保暖。豹猫主要栖息于山地林区、郊野灌丛和林缘村寨附近,能够在海拔3000米的高山林区生活。它们的体毛较为浓密,能够提供一定的保暖效果,因此在寒冷环境中具有一定的适应能力。然而,尽管豹猫对
    相关文章
    推荐文章
    发表评论
    0评