1page.title=Android 2.0.1, Release 1
2excludeFromSuggestions=true
3sdk.platform.version=2.0.1
4sdk.platform.apiLevel=6
5sdk.platform.majorMinor=minor
6
7@jd:body
8
9<div id="qv-wrapper">
10<div id="qv">
11
12  <h2>In this document</h2>
13  <ol>
14	<li><a href="#features">Platform Highlights</a></li>
15	<li><a href="#relnotes">Revisions</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="#dev-features">Developer Features</a></li>
20	<li><a href="#api">Framework API</a>
21    <ol>
22      <li><a href="#api-level">API level</a></li>
23      <li><a href="#api-changes">API changes summary</a></li>
24      <li><a href="#behavior-changes">Behavior changes</a></li>
25      <li><a href="#bug-fixes">Bug fixes</a></li>
26      <li><a
27href="{@docRoot}sdk/api_diff/{@sdkPlatformApiLevel}/changes.html">API
28differences report &raquo;</a> </li>
29    </ol>
30  </li>
31  </ol>
32
33</div>
34</div>
35
36<p>
37
38<em>API Level:</em>&nbsp;<strong>{@sdkPlatformApiLevel}</strong></p>
39
40<p>Android {@sdkPlatformVersion} is a {@sdkPlatformMajorMinor} platform release
41deployable to Android-powered handsets starting in December 2009.
42This release includes minor API
43changes, bug fixes and framework behavioral changes. For information on changes
44and fixes, see the <a href="#api">Framework API</a> section.</p>
45
46<p>For developers, the Android {@sdkPlatformVersion} platform is available as a
47downloadable component for the Android SDK. The downloadable platform includes a
48fully compliant Android library and system image, as well as a set of emulator
49skins, sample applications, and more. The downloadable platform
50includes no external libraries. </p>
51
52<p>To get started developing or testing against the Android
53{@sdkPlatformVersion} platform, use the Android SDK and AVD Manager tool to
54download the platform into your Android 1.6 or later SDK.</p>
55
56
57<h2 id="features">Platform Highlights</h2>
58
59<p>For a list of new user features and platform highlights, see the <a
60href="http://developer.android.com/about/versions/android-2.0-highlights.html">Android
612.0 Platform Highlights</a> document.</p>
62
63<h2 id="relnotes">Revisions</h2>
64
65<p>The sections below provide notes about successive releases of
66the Android {@sdkPlatformVersion} platform component for the Android SDK, as denoted by
67revision number. To determine what revision(s) of the Android
68{@sdkPlatformVersion} platforms are installed in your SDK environment, refer to
69the "Installed Packages" listing in the Android SDK and AVD Manager.</p>
70
71<script type="text/javascript">
72function toggleDiv(link) {
73  var toggleable = $(link).parent();
74  if (toggleable.hasClass("closed")) {
75    //$(".toggleme", toggleable).slideDown("fast");
76    toggleable.removeClass("closed");
77    toggleable.addClass("open");
78    $(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/styles/disclosure_up.png"));
79  } else {
80    //$(".toggleme", toggleable).slideUp("fast");
81    toggleable.removeClass("open");
82    toggleable.addClass("closed");
83    $(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/styles/disclosure_down.png"));
84  }
85  return false;
86}
87</script>
88<style>
89.toggleable {
90padding: .25em 1em;
91}
92.toggleme {
93  padding: 1em 1em 0 2em;
94  line-height:1em;
95}
96.toggleable a {
97  text-decoration:none;
98}
99.toggleable.closed .toggleme {
100  display:none;
101}
102#jd-content .toggle-img {
103  margin:0;
104}
105</style>
106
107<div class="toggleable closed">
108  <a href="#" onclick="return toggleDiv(this)">
109        <img src="{@docRoot}assets/images/styles/disclosure_down.png" class="toggle-img" height="9px" width="9px" />
110        Android 2.0.1, Revision 1</a> <em>(December 2009)</em></a>
111  <div class="toggleme">
112<dl>
113<dt>Dependencies:</dt>
114<dd>
115<p>Requires SDK Tools r4 or higher.</p>
116</dd>
117</dl>
118 </div>
119</div>
120
121<h2 id="apps">Built-in Applications</h2>
122
123<p>The system image included in the downloadable platform provides these
124built-in applications:</p>
125
126<table style="border:0;padding-bottom:0;margin-bottom:0;">
127<tr>
128<td style="border:0;padding-bottom:0;margin-bottom:0;">
129	<ul>
130	<li>Alarm Clock</li>
131	<li>Browser</li>
132	<li>Calculator</li>
133	<li>Camcorder</li>
134	<li>Camera</li>
135	<li>Contacts</li>
136	<li>Custom Locale (developer app)</li>
137	<li>Dev Tools (developer app)</li>
138	<li>Dialer</li>
139	</ul>
140</td>
141<td style="border:0;padding-bottom:0;margin-bottom:0;padding-left:5em;">
142	<ul>
143	<li>Email</li>
144	<li>Gallery</li>
145	<li>Gestures Builder</li>
146	<li>IME for Japanese text input</li>
147	<li>Messaging</li>
148	<li>Music</li>
149	<li>Settings</li>
150	<li>Spare Parts (developer app)</li>
151	</ul>
152</td>
153</tr>
154</table>
155
156<p><span class="new">New with 2.0.1</span> The Dev Tools app now
157includes a "Sync Tester" application to provide quick and easy testing of
158third-party sync adapters.</p>
159
160<h2 id="locs" style="margin-top:.75em;">Locales</h2>
161
162<p>The system image included in the downloadable platform provides a variety of
163built-in locales. In some cases, region-specific strings are available for the
164locales. In other cases, a default version of the language is used. The
165languages that are available in the Android {@sdkPlatformVersion} system
166image are listed below (with <em>language</em>_<em>country/region</em> locale
167descriptor).</p>
168
169<table style="border:0;padding-bottom:0;margin-bottom:0;">
170<tr>
171<td style="border:0;padding-bottom:0;margin-bottom:0;">
172<ul>
173<li>Chinese, PRC (zh_CN)</li>
174<li>Chinese, Taiwan (zh_TW)</li>
175<li>Czech (cs_CZ)</li>
176<li>Dutch, Netherlands (nl_NL)</li>
177<li>Dutch, Belgium (nl_BE)</li>
178<li>English, US (en_US)</li>
179<li>English, Britain (en_GB)</li>
180<li>English, Canada (en_CA)</li>
181<li>English, Australia (en_AU)</li>
182<li>English, New Zealand (en_NZ)</li>
183<li>English, Singapore(en_SG)</li>
184<li>French, France (fr_FR)</li>
185<li>French, Belgium (fr_BE)</li>
186</ul>
187</td>
188<td style="border:0;padding-bottom:0;margin-bottom:0;padding-left:5em;">
189<li>French, Canada (fr_CA)</li>
190<li>French, Switzerland (fr_CH)</li>
191<li>German, Germany (de_DE)</li>
192<li>German, Austria (de_AT)</li>
193<li>German, Switzerland (de_CH)</li>
194<li>German, Liechtenstein (de_LI)</li>
195<li>Italian, Italy (it_IT)</li>
196<li>Italian, Switzerland (it_CH)</li>
197<li>Japanese (ja_JP)</li>
198<li>Korean (ko_KR)</li>
199<li>Polish (pl_PL)</li>
200<li>Russian (ru_RU)</li>
201<li>Spanish (es_ES)</li>
202</td>
203</tr>
204</table>
205
206<p>Localized UI strings match the locales that are accessible
207through Settings.</p>
208
209<h2 id="skins">Emulator Skins</h2>
210
211<p>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: </p>
212
213<ul>
214  <li>
215    QVGA (240x320, low density, small screen)
216  </li>
217  <li>
218    WQVGA (240x400, low density, normal screen)
219  </li>
220  <li>
221    FWQVGA (240x432, low density, normal screen)
222  </li>
223  <li>
224    HVGA (320x480, medium density, normal screen)
225  </li>
226  <li>
227    WVGA800 (480x800, high density, normal screen)
228  </li>
229  <li>
230    WVGA854 (480x854 high density, normal screen)
231  </li>
232</ul>
233
234<p>For more information about how to develop an application that displays and functions properly on all Android-powered devices, see <a href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple Screens</a>.</p>
235
236<h2 id="dev-features">Developer Features</h2>
237
238<p>The sections below provide information about new developer features offered by the downloadable Android 2.0 platform component.</p>
239
240<h3 id="ant">Ant Support</h3>
241
242<ul>
243<li>Debug- and release-mode application signing. Release-mode signing includes integrated support for <code>zipalign</code> optimization. For more information, see <a href="{@docRoot}tools/publishing/app-signing.html#releasecompile">Signing Your Applications</a>.</li>
244
245<li>Adds new Ant build system with support for Emma instrumentation projects (code coverage).</li>
246</ul>
247
248<h2 id="api">Framework API</h2>
249
250<p>The sections below provide information about changes made to the application
251framework API provided by the Android {@sdkPlatformVersion} platform. Note,
252however, that Android 2.0.1 is a minor release to Android 2.0, so for more
253information about the changes made to in Android 2.0, please refer to the
254<a href="{@docRoot}about/versions/android-2.0.html#api">Android 2.0 version notes</a>.</p>
255
256
257<h3 id="api-level">API level</h3>
258
259<p>The Android {@sdkPlatformVersion} platform delivers an updated version of the framework
260API. The Android {@sdkPlatformVersion} API
261is assigned an integer identifier &mdash; <strong>{@sdkPlatformApiLevel}</strong> &mdash; that is
262stored in the system itself. This identifier, called the "API Level", allows the
263system to correctly determine whether an application is compatible with
264the system, prior to installing the application. </p>
265
266<p>To use APIs introduced in Android {@sdkPlatformVersion} in your application, you need to
267set the proper value, "{@sdkPlatformApiLevel}", in the attributes of the <code>&lt;uses-sdk&gt;</code>
268element in your application's manifest. </p>
269
270<p>For more information about how to use API Level, see the <a
271href="{@docRoot}guide/topics/manifest/uses-sdk-element.html#ApiLevels">API Levels</a> document. </p>
272
273
274<h3 id="api-changes">API changes summary</h3>
275
276<p>The following is a summary of changes to the framework APIs.</p>
277
278<ul>
279<li>New {@code quickContactBadgeStyle*} attributes that let
280applications apply necessary styles to the {@link
281android.widget.QuickContactBadge} widget.</li>
282
283<li>Remove support for the {@link
284android.content.Intent#ACTION_CONFIGURATION_CHANGED} broadcast when declared as
285a filter in the manifest. To receive this broadcast, an application must
286do so from the application at run-time, with {@link
287android.content.Context#registerReceiver(BroadcastReceiver, IntentFilter)}.</li>
288</ul>
289
290<h3 id="behavior-changes">Behavior changes</h3>
291
292<p>The following is a summary of changes that affect the behavior of some
293framework APIs but do not add or remove API functionality.</p>
294
295<h4>Bluetooth</h4>
296
297<p>Changes to the values returned by {@link
298android.bluetooth.BluetoothAdapter#ACTION_REQUEST_ENABLE} and
299{@link android.bluetooth.BluetoothAdapter#ACTION_REQUEST_DISCOVERABLE}:</p>
300
301<ul>
302<li>{@link android.bluetooth.BluetoothAdapter#ACTION_REQUEST_ENABLE} now
303returns {@link android.app.Activity#RESULT_OK} if Bluetooth was successfully
304enabled and {@link android.app.Activity#RESULT_CANCELED} if the user rejected
305the request to enable Bluetooth, rather than 0 and -1 (or -2),
306respectively.</li>
307
308<li>{@link android.bluetooth.BluetoothAdapter#ACTION_REQUEST_DISCOVERABLE}
309now returns {@link android.app.Activity#RESULT_CANCELED} if the user rejected
310the request to enable discoverability or if Bluetooth is not enabled, rather
311than -1 and -2, respectively.</li>
312</ul>
313
314<h4>Contacts</h4>
315
316<p>The {@link android.content.Intent#ACTION_INSERT} Intent now returns {@link
317android.app.Activity#RESULT_CANCELED} in cases where the contact was not
318persisted (for example, if the save was trimmed to a no-op).</p>
319
320
321<h3 id="bug-fixes">Bug fixes</h3>
322
323<p>The following is a summary of bug fixes that affect some framework APIs.</p>
324
325<h4>Resources</h4>
326
327<p>The framework now correctly selects application resources in project
328folders that use the API Level qualifier. For example, {@code drawable-v4/} is a
329folder of drawable resources for API Level 4 (or higher) devices. This version
330matching did not work properly and has been fixed.</p>
331
332<h4>Contacts</h4>
333
334<p>The {@link android.content.Intent#ACTION_INSERT} Intent now returns the
335appropriate kind of URI when the request is made using the (now
336deprecated) {@link android.provider.Contacts} APIs.</p>
337
338<h4>Other Framework fixes</h4>
339
340<ul>
341<li>{@link android.app.Activity#getCallingPackage()} now properly reports the
342package name, rather than the process name.</li>
343</ul>
344
345
346<h3 id="api-diff">API differences report</h3>
347
348<p>For a detailed view of API changes in Android {@sdkPlatformVersion} (API Level {@sdkPlatformApiLevel}), as compared to
349API Level 5, see the <a
350href="{@docRoot}sdk/api_diff/{@sdkPlatformApiLevel}/changes.html">API
351Differences Report</a>. There are very few API changes in API Level 6,
352so you might also be interested in reviewing the <a
353href="{@docRoot}sdk/api_diff/5/changes.html">API
354differences between 4 and 5</a>.</p>
355
356