blob: 7f9141e6a5a27673d6927bcbe71e9a2173b0490b [file] [log] [blame]
Scott Mainb149ee82009-12-15 10:47:31 -08001page.title=Android 2.1, Release 1
2sdk.platform.version=2.1
3sdk.platform.apiLevel=7
4sdk.platform.majorMinor=minor
5sdk.platform.releaseDate=January 2010
6sdk.platform.deployableDate=January 2010
7
8@jd:body
9
10<div id="qv-wrapper">
11<div id="qv">
12
13<h2>In this document</h2>
14<ol>
15 <li><a href="#features">Platform Highlights</a></li>
16 <li><a href="#apps">Built-in Applications</a></li>
17 <li><a href="#locs">Locales</a></li>
18 <li><a href="#skins">Emulator Skins</a></li>
19 <li><a href="#api">Framework API</a>
20 <ol>
21 <li><a href="#api-level">API level</a></li>
22 <li><a href="#api-changes">API changes summary</a></li>
23 <li><a
24href="{@docRoot}sdk/api_diff/{@sdkPlatformApiLevel}/changes.html">API
25differences report &raquo;</a> </li>
26 </ol>
27 </li>
28</ol>
29
30<h2>See Also</h2>
31<ol>
32 <li><a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a></li>
33</ol>
34
35</div>
36</div>
37
38<p>
39<em>Date:</em> {@sdkPlatformReleaseDate}<br />
40<em>API Level:</em>&nbsp;<strong>{@sdkPlatformApiLevel}</strong></p>
41
42<p>Android {@sdkPlatformVersion} is a {@sdkPlatformMajorMinor} platform release
43deployable to Android-powered handsets starting in {@sdkPlatformDeployableDate}.
44This release includes new API
45changes and bug fixes. For information on changes, see the <a href="#api">Framework API</a>
46section.</p>
47
48<p>For developers, the Android {@sdkPlatformVersion} platform is available as a
49downloadable component for the Android SDK. The downloadable platform includes a
50fully compliant Android library and system image, as well as a set of emulator
51skins, sample applications, and more. The downloadable platform
52includes no external libraries. </p>
53
54<p>To get started developing or testing against the Android
55{@sdkPlatformVersion} platform, use the Android SDK and AVD Manager tool to
56download the platform into your Android SDK. For more information,
57see <a href="{@docRoot}sdk/adding-components.html">Adding SDK
58Components</a>.</p>
59
60
61<h2 id="features">Platform Highlights</h2>
62
63<p>Android {@sdkPlatformVersion} does not add significant user features, see the <a
64href="http://developer.android.com/sdk/android-2.0-highlights.html">Android
652.0 Platform Highlights</a> document for the latest user features.</p>
66
67<h2 id="apps">Built-in Applications</h2>
68
69<p>The system image included in the downloadable platform provides these
70built-in applications:</p>
71
72<table style="border:0;padding-bottom:0;margin-bottom:0;">
73<tr>
74<td style="border:0;padding-bottom:0;margin-bottom:0;">
75 <ul>
76 <li>Alarm Clock</li>
77 <li>Browser</li>
78 <li>Calculator</li>
79 <li>Camcorder</li>
80 <li>Camera</li>
81 <li>Contacts</li>
82 <li>Custom Locale (developer app)</li>
83 <li>Dev Tools (developer app)</li>
84 <li>Dialer</li>
85 </ul>
86</td>
87<td style="border:0;padding-bottom:0;margin-bottom:0;padding-left:5em;">
88 <ul>
89 <li>Email</li>
90 <li>Gallery</li>
91 <li>Gestures Builder</li>
92 <li>IME for Japanese text input</li>
93 <li>Messaging</li>
94 <li>Music</li>
95 <li>Settings</li>
96 <li>Spare Parts (developer app)</li>
97 </ul>
98</td>
99</tr>
100</table>
101
102<h2 id="locs" style="margin-top:.75em;">Locales</h2>
103
104<p>The system image included in the downloadable platform provides a variety of
105built-in locales. In some cases, region-specific strings are available for the
106locales. In other cases, a default version of the language is used. The
107languages that are available in the Android {@sdkPlatformVersion} system
108image are listed below (with <em>language</em>_<em>country/region</em> locale
109descriptor).</p>
110
111<table style="border:0;padding-bottom:0;margin-bottom:0;">
112<tr>
113<td style="border:0;padding-bottom:0;margin-bottom:0;">
114<ul>
115<li>Chinese, PRC (zh_CN)</li>
116<li>Chinese, Taiwan (zh_TW)</li>
117<li>Czech (cs_CZ)</li>
118<li>Dutch, Netherlands (nl_NL)</li>
119<li>Dutch, Belgium (nl_BE)</li>
120<li>English, US (en_US)</li>
121<li>English, Britain (en_GB)</li>
122<li>English, Canada (en_CA)</li>
123<li>English, Australia (en_AU)</li>
124<li>English, New Zealand (en_NZ)</li>
125<li>English, Singapore(en_SG)</li>
126<li>French, France (fr_FR)</li>
127<li>French, Belgium (fr_BE)</li>
128</ul>
129</td>
130<td style="border:0;padding-bottom:0;margin-bottom:0;padding-left:5em;">
131<li>French, Canada (fr_CA)</li>
132<li>French, Switzerland (fr_CH)</li>
133<li>German, Germany (de_DE)</li>
134<li>German, Austria (de_AT)</li>
135<li>German, Switzerland (de_CH)</li>
136<li>German, Liechtenstein (de_LI)</li>
137<li>Italian, Italy (it_IT)</li>
138<li>Italian, Switzerland (it_CH)</li>
139<li>Japanese (ja_JP)</li>
140<li>Korean (ko_KR)</li>
141<li>Polish (pl_PL)</li>
142<li>Russian (ru_RU)</li>
143<li>Spanish (es_ES)</li>
144</td>
145</tr>
146</table>
147
148<p>Localized UI strings match the locales that are accessible
149through Settings.</p>
150
151<h2 id="skins">Emulator Skins</h2>
152
153<p>The downloadable platform includes a set of emulator skins that you can use
154for modeling your application in different screen sizes and resolutions. The
155emulator skins are:</p>
156
157<ul>
158 <li>
159 QVGA (240x320, low density, small screen)
160 </li>
161 <li>
162 WQVGA (240x400, low density, normal screen)
163 </li>
164 <li>
165 FWQVGA (240x432, low density, normal screen)
166 </li>
167 <li>
168 HVGA (320x480, medium density, normal screen)
169 </li>
170 <li>
171 WVGA800 (480x800, high density, normal screen)
172 </li>
173 <li>
174 WVGA854 (480x854 high density, normal screen)
175 </li>
176</ul>
177
178<p>For more information about how to develop an application that displays
179and functions properly on all Android-powered devices, see <a
180href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple
181Screens</a>.</p>
182
183<h2 id="api">Framework API</h2>
184
185<p>The sections below provide information about changes made to the application
186framework API provided by the Android {@sdkPlatformVersion} platform.</p>
187
188
189<h3 id="api-level">API level</h3>
190
191<p>The Android {@sdkPlatformVersion} platform delivers an updated version of
192the framework API. The Android {@sdkPlatformVersion} API
193is assigned an integer identifier &mdash;
194<strong>{@sdkPlatformApiLevel}</strong> &mdash; that is
195stored in the system itself. This identifier, called the "API Level", allows the
196system to correctly determine whether an application is compatible with
197the system, prior to installing the application. </p>
198
199<p>To use APIs introduced in Android {@sdkPlatformVersion} in your
200application, you need to set the proper value, "{@sdkPlatformApiLevel}", in the
201attributes of the <code>&lt;uses-sdk&gt;</code> element in your application's
202manifest. </p>
203
204<p>For more information about how to use API Level, see the <a
205href="{@docRoot}guide/appendix/api-levels.html">API Levels</a> document. </p>
206
207
208<h3 id="api-changes">API changes summary</h3>
209
210<p>The following is a summary of some notable changes to the framework APIs.</p>
211
212<h4>Live Wallpapers</h4>
213
Scott Main354261e2009-12-16 15:25:35 -0800214<p>The following additions provide APIs for you to develop animated wallpapers:</p>
Scott Mainb149ee82009-12-15 10:47:31 -0800215<ul>
216<li>New {@link android.service.wallpaper} package.</li>
217<li>New {@link android.app.WallpaperInfo} class.</li>
218<li>Updated {@link android.app.WallpaperManager}.</li>
219</ul>
220
221<h4>Telephony</h4>
222
223<ul>
224<li>New {@link android.telephony.SignalStrength} class provides information
225about the device's current network signal. This can be acquired from the
226new {@link
227android.telephony.PhoneStateListener#onSignalStrengthsChanged(SignalStrength)}
228callback.</li>
229
230<li>New {@link
231android.telephony.PhoneStateListener#onDataConnectionStateChanged(int,int)}
232callback.</li>
233</ul>
234
235<h4>Views</h4>
236
237<ul>
238<li>New {@link android.view.View} methods {@link android.view.View#isOpaque()}
239and {@link android.view.View#onDrawScrollBars(Canvas)}.</li>
240
241<li>New {@link android.widget.RemoteViews} methods {@link
242android.widget.RemoteViews#addView(int,RemoteViews)} and {@link
243android.widget.RemoteViews#removeAllViews(int)}.</li>
244
245<li>New {@link android.view.ViewGroup} methods {@link
246android.view.ViewGroup#isChildrenDrawingOrderEnabled()} and {@link
247android.view.ViewGroup#setChildrenDrawingOrderEnabled(boolean)}.</li>
248</ul>
249
250<h4>WebKit</h4>
251
252<ul>
253<li>New {@link android.webkit.WebStorage} methods to manipulate web
254storage databases.</li>
255
256<li>New {@link android.webkit.GeolocationPermissions} methods to
257get Geolocation permissions from, and set them on the WebView.</li>
258
259<li>New {@link android.webkit.WebSettings} methods to manage settings for
260app cache, web storage, and zooming based on screen density.</li>
261
262<li>New {@link android.webkit.WebChromeClient} methods for handling video,
263browsing history, custom Views, app cache limits, and more.</li>
264</ul>
265
266</ul>
267
268<!--
269<h3 id="behavior-changes">Behavior changes</h3>
270
271<h3 id="bug-fixes">Bug fixes</h3>
272-->
273
274<h3 id="api-diff">API differences report</h3>
275
276<p>For a detailed view of all API changes in Android {@sdkPlatformVersion} (API
277Level {@sdkPlatformApiLevel}), as compared to API Level 6, see the <a
278href="{@docRoot}sdk/api_diff/{@sdkPlatformApiLevel}/changes.html">API
279Differences Report</a>.</p>
280