page.title=Android 2.1 Platform sdk.platform.version=2.1 sdk.platform.apiLevel=7 sdk.platform.majorMinor=minor @jd:body
API Level: {@sdkPlatformApiLevel}
Android {@sdkPlatformVersion} is a {@sdkPlatformMajorMinor} 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 {@sdkPlatformVersion} 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 {@sdkPlatformVersion} platform, use the Android SDK and AVD Manager tool to download the platform into your SDK. For more information, see Exploring the SDK.
Android {@sdkPlatformVersion} 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 {@sdkPlatformVersion} platform component for the Android SDK, as denoted by revision number. To determine what revision(s) of the Android {@sdkPlatformVersion} platforms are installed in your SDK environment, refer to the "Installed Packages" listing in the Android SDK and AVD Manager.
Android {@sdkPlatformVersion}, Revision 3 (July 2011)
Requires SDK Tools r12 or higher.
Improvements to the platform's rendering library to support the visual layout editor in the ADT Eclipse plugin. This revision allows for more drawing features in ADT and fixes several bugs in the previous rendering library. It also unlocks several editor features that were added in ADT 12.
Android {@sdkPlatformVersion}, Revision 2 (May 2010)
Requires SDK Tools r6 or higher.
Android {@sdkPlatformVersion}, Revision 1 (January 2010)
Requires SDK Tools r4 or higher.
The Android {@sdkPlatformVersion} platform delivers an updated version of the framework API. The Android {@sdkPlatformVersion} API is assigned an integer identifier — {@sdkPlatformApiLevel} — 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 {@sdkPlatformVersion} in your
application, you need to set the proper value, "{@sdkPlatformApiLevel}", in the
android:minSdkVersion
attributes of the <uses-sdk>
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 {@sdkPlatformVersion} platform.
The following additions provide APIs for you to develop animated wallpapers:
Additionally, if your application uses or provides Live Wallpapers, you must
remember to add a <uses-feature>
element to the application's manifest, declaring the attribute
android:name="android.software.live_wallpaper"
. For example:
<uses-feature android:name="android.software.live_wallpaper" />
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.
For a detailed view of all API changes in Android {@sdkPlatformVersion} (API Level {@sdkPlatformApiLevel}), as compared to API Level 6, see the API Differences Report.
The system image included in the downloadable platform provides these built-in applications:
|
|
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 {@sdkPlatformVersion} system image are listed below (with language_country/region locale descriptor).
|
|
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:
For more information about how to develop an application that displays and functions properly on all Android-powered devices, see Supporting Multiple Screens.