分享好友 最新动态首页 最新动态分类 切换频道
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)
    最新文章
    抖音信息流广告怎么投放推广?抖音信息流广告投放怎么开户的
    抖音信息流广告投放攻略及开户流程详解文章摘要:本文将详细介绍抖音信息流广告的投放攻略,包括广告形式、投放方式、优化策略等内容,并结合实例进行讲解。还将详细介绍抖音信息流广告的开户流程,帮助广告主快速开通账户,并顺利进行广告
    竞价推广代运营服务,为您的业绩加把劲!
    标题:竞价推广代运营服务,为您的业绩加把劲!尊敬的客户,您是否在苦苦寻找一种能够迅速提升您公司业绩的策略?那么,您一定不能错过我们的竞价推广代运营服务!一、何为竞价推广代运营服务?竞价推广代运营服务,简单来说,就是我们将为
    零到一开发全流程学习:新手入门指南
    本文详细介绍了零到一开发全流程学习,涵盖从开发环境搭建ӌ
    河北排名靠前的短视频直播电商培训机构2024-12-12 13:53:06 访问:47次
    美迪实力:1、自立研发国内外电商平台几十个电商课程从电商运营店长班、电商实战班、直播带货爆搜班、电商美工设计师、电商摄影短视频班、跨境电商运营班、新媒体运营班8个方向的电商课程进行实战培养,培养学员从运营/设计助理、运营/设计
    方案策划
    精选方案策划集合八篇  为有力保证事情或工作开展的水平质量,通常会被要求事先制定方案,方案是从目的、要求、方式、方法、进度等都部署具体、周密,并有很强可操作性的计划。制定方案需要注意哪些问题呢?下面是小编精心整理的方案策划
    这车到底值不值?Mustang车型怎么选
    新车基于福特打造,整体外观造型延续了野马家族经典的设计语言,但也加入了不少彰显科技感的设计。新车前脸搭载封闭式格栅设计,并在中间嵌有品牌logo,前脸的造型看上去十分霸气。而前脸两侧的内部灯组采用了熏黑处理,点亮后具有不错的视
    啄木鸟满天星系列:探索自然之美的完美选择与魅力产品
    九幺短视频旧版本承载了许多用户的回忆与精彩瞬间。虽然功能与界面相对简单,但独特的滤镜与特效使得用户仍然钟爱这一版本。怀旧的魅力加上易操作的设计,让它在特定人群中保持着热度。9 1抖音短视频安装是许多用户追求新体验的起点。作为
    济南SEO负面优化揭秘,揭秘网站排名的致命危机
    济南SEO负面优化,是一种性极强的不正当手段,它通过损害网站声誉和结构,严重影响网站排名。这种非法操作不仅损害了网站本身的利益,还了互联网生态平衡,必须予以严厉打击。随着互联网的快速发展,搜索引擎优化(SEO)已成为企业提升网站
    阿尔法·罗密欧Giulia朱丽叶该怎么选 能跑能装
    对于实用主义者而言,汽车油耗低是一件好事,毕竟油费可是日常用车成本里的大头。不少网友留言想看 ,今天它来了。让我们一起来看看它的表现吧。首先从外观来看,Giulia朱丽叶车头设计显得十分凶悍 ,看上去非常犀利。前车灯非常符合消费者
    相关文章
    推荐文章
    发表评论
    0评