blob: 130a92c32fb0dda8fde7ff65b8f429f1df1f9d35 [file] [log] [blame]
The Android Open Source Project9066cfe2009-03-03 19:31:44 -08001page.title=SDK Release Notes
2@jd:body
3
Dirk Doughertyfe1f7892009-04-21 18:52:41 -07004<p>This document provides version-specific information about Android SDK
5releases. For the latest known issues, please ensure that you're viewing this
Dirk Dougherty3f9de8b2009-05-22 16:04:18 -07006page at <a href="http://developer.android.com/sdk/RELEASENOTES.html">http://developer.android.com/sdk/RELEASENOTES.html</a>.</p>
7
Dirk Doughertya6602f12009-08-27 16:26:43 -07008<h2 id="1.6_r1">Android 1.6 SDK, Release 1</h2>
9
10<p>This SDK provides updates to the development tools and Android system that
11you use to create applications for compliant Android-powered devices. </p>
12
13<h3>Release Overview</h3>
14
15<p>This SDK release includes several new features for developers. Highlights of the
16changes include: </p>
17
18 <ul>
19 <li>Emulator support for multiple screen sizes/densities, including new
20skins. </li>
21 <li>Android SDK and AVD Manager, a graphical UI to let you manage your
22SDK and AVD environments more easily. The tool lets you create and manage
23your <a href="{@docRoot}guide/developing/tools/avd.html">Android Virtual
24Devices</a> and download new SDK packages (such as platform versions and
25add-ons) into your environment.</li>
26 <li>Improved support for test packages in New Project Wizard</li>
27 </ul>
28
29<p>For details about the Android platforms included in the SDK &mdash; including
30bug fixes, features, and API changes &mdash; please read the Version Notes
31documents available at left. For a list of Android platforms included in this
32release, see the <a href="{@docRoot}sdk/1.6_r1/index.html">Download
33page</a>. Note that you can use the Android SDK and AVD Manager to download
34additional platforms.</p>
35
36<h3>Installation and Upgrade Notes</h3>
37
38<p>If you've been developing an application using an Android 1.1 SDK, you need
39to make a few changes to your development environment to migrate to the new SDK.
40Tools and documentation are provided to assist you. No changes to the source
41code of an existing application should be needed, provided that your application
42is not using Android internal structures or APIs.</p>
43
44<p>To ensure that your existing application will work properly on a device
45running the latest version of the Android platform, you are strongly encouraged
46to migrate the application to the new SDK, compile it using the platform
47matching the application's original API Level, and run it against the most
48current platform. </p>
49
50<p>If you're installing the Android SDK for the first time, please see
51the instructions in <a
52href="{@docRoot}sdk/1.5_r1/installing.html">Installing the SDK</a>.
53
54<h3>ADT Plugin for Eclipse</h3>
55
56<p>An updated version of the ADT Plugin for Eclipse is available with the
57Android 1.6 SDK. The new version, ADT 0.9.3, provides several new
58features, including integrated support for the Android SDK and AVD Manager
59and zipalign tool. In addition, the New Project Wizard now
60lets you create a test package containing tests for your application. These
61features are described in the sections below. </p>
62
63<p>If you are developing in Eclipse with ADT and want to get started with the
64Android 1.6 SDK, you should download and install a compatible version of the ADT
65Plugin (0.9.3 or higher). </p>
66
67<p>The new version of ADT is downloadable from the usual remote update site or
68is separately downloadable as a .zip archive. For instructions on how to
69download the plugin, please see <a href="upgrading.html#UpdateAdt">Upgrading
70Your Eclipse Plugin</a>. </p>
71
72<h3>Android SDK and AVD Manager</h3>
73
74<p>The SDK offers a new tool called Android AVD Manager that lets you manage
75your SDK and AVD environments more efficiently. </p>
76
77<p>Using the tool, you can quickly check what Android platforms, add-ons,
78extras, and documentation packages are available in your SDK environment, what
79their versions are, and whether updated versions are available. You can then
80download one or more items from remote repositories and install them directly in
81your SDK environment. For example, the tool lets you obtain updates to SDK tools
82incrementally, as they are made available, without having to wait for the next
83SDK release. You can also download Android platform versions into your
84environment that were not included in the SDK package.</p>
85
86<p>The tool also lets you quickly create new AVDs, manage
87their properties, and run a target AVD from a single window. </p>
88
89<p>If you are developing in Eclipse with ADT, you can access the Android SDK
90and AVD Manager from the <strong>Window</strong> menu. </p>
91
92<p>If you are developing in another IDE, you can access the Android SDK and
93AVD Manager through the <code>android</code> command-line tool, located in the
94&lt;sdk&gt;/tools directory. You can launch the tool with a graphical UI by
95using the <code>android</code> command without specifying any options. You can
96also simply double-click the android.bat (Windows) or android (OS X/Linux) file.
97You can still use <code>android</code> commands to create and manage AVDs,
98including AVDs with custom hardware configurations.</p>
99
100<h3>Integration with zipalign</h3>
101
102<p>The Android system offers a performance optimization for installed
103application packages whose contained uncompressed files are all aligned on
1044-byte boundaries. For these .apks, the system can read the files by mmap'ing
105the zip file, rather than by copying all the data out of them. This reduces
106the amount of memory used by the application at run time. The SDK includes
107a tool called <code>zipalign</code> that you can run against your .apks, to
108align them properly and enable them to benefit from this optimization.</p>
109
110<p>The ADT Plugin and the Ant build tools both provide integrated support for
111aligning your application packages. After you build an .apk, the SDK tools can
112sign and then run <code>zipalign</code> against it. The SDK includes the
113standalone version of the <code>zipalign</code> tool, so you can run also run it
114manually from the command line if you choose. </p>
115
116<ul>
117 <li>If you are developing in Eclipse with ADT, support for
118<code>zipalign</code> is integrated into the Export Wizard. When you use the
119Wizard to export a signed application package, ADT signs and then automatically
120runs <code>zipalign</code> against the exported package. If you use the Wizard
121to export an unsigned application package, then it will not zipalign the
122package because zipalign must be performed only after the APK has been signed.
123You must manually sign and zipalign the package after export. </li>
124 <li>If you are developing using Ant and are compiling in release mode, the
125build tools will automatically sign and then <code>zipalign</code> the
126application package, provided that you have specified the location of a valid
127keystore in the build properties file. If you are compiling in debug mode, the
128build tools will sign the package with the debug key and then <code>zipalign</code>
129it.</li>
130 <li>To use <code>zipalign</code> manually, change to the SDK tools directory
131and use the command syntax <code>$ zipalign 4 &lt;infile&gt;
132&lt;outfile&gt;</code></li>
133</ul>
134
135<p>In general, note that you must <code>zipalign</code> an application only
136<em>after</em> it has been signed, as signing will disrupt the package
137alignment.</p>
138
139<h3>Support for Test Packages in New Project Wizard</h3>
140
141<p>The New Project Wizard available in the ADT 0.9.3 now lets you add a test
142package containing Instrumentation or other classes of tests while you are
143creating or importing a new Android application project. </p>
144
145<h3>New USB Driver for Windows</h3>
146
147<p>If you are using Windows and want to develop or test your application on an
148Android-powered device (such as the T-Mobile G1), you need an appropriate USB
149driver.
150
151<p>The Windows version of the Android 1.6 SDK includes a new, WinUSB-based
152driver that you can install. The driver is compatible with both 32- and 64-bit
153versions of Windows XP and Vista. The driver represents an upgrade from the USB
154driver included in previous Android SDKs, although installing the new driver is
155not required. </p>
156
157<p>If you installed the USB driver from a previous SDK release and it is working
158properly, you do not need to upgrade to the new driver. However, we recommend
159upgrading if you have had any problems with the older driver or simply want
160to upgrade to the latest version.</p>
161
162<p>The USB driver files are located in the
163<code>&lt;SDK&gt;/usb_driver</code> directory. For driver installation or
164upgrade instructions, see <a
165href="{@docRoot}guide/developing/device.html#WinUsbDriver">Installing the WinUSB
166Driver</a>.</p>
167</p>
168
169<h3>Emulator Skins, Android 1.6 Platform</h3>
170
171<p>The Android 1.6 platform included in the SDK provides a new set of emulator
172skins, including: </p>
173
174<ul>
175 <li>QVGA &mdash; 240 x 320, low density (120 dpi)</li>
176 <li>HVGA &mdash; 320 x 480, medium density (160 dpi)</li>
177 <li>WVGA800 &mdash; 480 x 800, high density (240 dpi)</li>
178 <li>WVGA854 &mdash; 480 x 854, high density (240 dpi)</li>
179</ul>
180
181<p>Besides these defaults, You can also create an AVD that overrides the default
182density for each skin, to create any combination of resolution/density (WVGA
183with medium density, for instance). To do so, use the <code>android</code> tool
184command line to create a new AVD that uses a custom hardare configuration. See
185<a href="{@docRoot}guide/developing/tools/avd.html#createavd">Creating an
186AVD</a> for more information.</p>
187
188<h3>Other Notes and Resolved Issues</h3>
189
190<ul>
191 <li>This SDK release adds support for Eclipse 3.5 (Galileo) and deprecates
192support for Eclipse 3.3 (Europa). </li>
193 <li>We regret to inform developers that Android 1.6 will not include support
194for <a href="http://www.ietf.org/rfc/rfc2549">RFC 2549</a></li>
195 <li>The issue preventing adb from recognizing Samsung Galaxy devices (linux SDK
196only) has been fixed.</li>
197</ul>
198
199
Dirk Dougherty4b508752009-07-16 08:51:33 -0700200<h2 id="1.5_r3">Android 1.5 SDK, Release 3</h2>
201
202<p>Provides an updated Android 1.5 system image that includes permissions
203fixes, as described below, and a new application &mdash; an IME for Japanese
204text input. Also provides the same set of developer tools included in the
205previous SDK, but with bug fixes and several new features.</p>
206
207<h3>Permissions Fixes</h3>
208
209<p>The latest version of the Android platform, deployable to
210Android-powered devices, includes fixes to the permissions-checking
211in certain areas of the framework. Specifically, the Android system
212now properly checks and enforces several existing permissions where it
213did not do so in the previous release. Because of these changes in
214enforcement, you are strongly encouraged to test your application
215against the new Android 1.5 system image included in this SDK, to ensure
216that it functions normally. </p>
217
218<p>In particular, if your application uses any of the system areas listed below,
219you should add the required permissions to the application's manifest and then
220test the areas of your code that depend on the permission-protected services.
221Even if you believe your application does not use the permissions-protected
222services, you should compile and test your application under the latest platform
223version to ensure that users will not encounter problems when using your
224application. </p>
225
226<p>The changes to permissions are as follows:</p>
227
228<ul>
229<li>When an application requests access to device camera (through
230android.hardware.camera), the <code>CAMERA</code> permission check is now
231properly enforced. </li>
232<li>When an application requests access to device audio capture (through
233android.media.MediaRecorder), the <code>RECORD_AUDIO</code> permission check is
234now properly enforced.</li>
235</ul>
236
237<p>For more information, see the issue described in the oCert advisory
238below:</p>
239
240<p style="margin-left: 2em;"><a href="http://www.ocert.org/advisories/ocert-2009-011.html">http://www.ocert.org/advisories/ocert-2009-011.html</a> </p>
241
242<h3>Resolved Issues, Changes</h3>
243
244<ul>
245<li>The SDK includes a new version of the Google APIs add-on. The add-on
246provides an updated com.google.android.maps external library that fixes compile
247errors related to certain classes such as GeoPoint. For information about the
248Google APIs add-on and the library it provides, see:
249
250<p style="margin-left:2em;"><a
251href="http://code.google.com/android/add-ons/google-apis">http://code.google.com/android/add-ons/google-apis</a> </p></li>
252
253<li>The SDK add-on architecture now lets device manufacturers specify a USB
254Vendor ID in their add-ons.
255<li>The <code>android</code> tool provides a new command that scans SDK add-ons
256for their USB Vendor IDs and makes them available to adb (OS X and Linux
257versions of the SDK only). The command is <code>android update adb</code>. On
258Windows versions of the SDK, a custom USB driver is included that supports the
259"Google" and "HTC" Vendor IDs, which allow adb to recognize G1 and HTC
260Magic devices. For other devices, contact the device manufacturer
261to obtain a USB driver, especially if you have an SDK add-on that defines
262a new USB Vendor ID.</li>
263<li>The telephony, sensor, and geo fix issues in the emulator are now
264fixed.</li>
265<li>When you use adb to uninstall an upgraded application, the Android system
266now properly restores any permissions that had already been granted to the
267previous (downgrade) version of the application</li>
268</ul>
269
Dirk Dougherty3f9de8b2009-05-22 16:04:18 -0700270<h2 id="1.5_r2">Android 1.5 SDK, Release 2</h2>
271
272<p>This SDK release provides the same developer tools as the Android 1.5 SDK,
273Release 1, but provides an updated Android 1.5 system image that includes a
274security patch for the issue described in the oCert advisory below:</p>
275
276<p style="margin-left:2em;"><a href="http://www.ocert.org/advisories/ocert-2009-006.html">http://www.ocert.org/advisories/ocert-2009-006.html</a></p>
Dirk Doughertyfe1f7892009-04-21 18:52:41 -0700277
278<h2 id="1.5_r1">Android 1.5 SDK, Release 1</h2>
279
280<p>This SDK provides updates to the development tools and Android system that
281you use to create applications for compliant Android-powered devices. </p>
282
283<h3>Release Overview</h3>
284
285<p>This SDK release includes many new features for developers. Highlights of the
286changes include: </p>
287
288 <ul>
289 <li>Multiple versions of the Android platform are included (Android 1.1,
290Android 1.5). The tools are updated to let you deploy your application
291on any platform in the SDK, which helps you ensure forward-compitility and,
292if applicable, backward-compatibility.</li>
293 <li>Introduces <a href="{@docRoot}guide/developing/tools/avd.html">Android
294Virtual Devices</a> &mdash; (AVD) configurations of options that you
295run in the emulator to better model actual devices. Each AVD gets its
296own dedicated storage area, making it much easier to work with multiple emulators
297that are running concurrently.</li>
298 <li>Support for SDK add-ons, which extend the
299Android SDK to give you access to one or more external Android libraries and/or
300a customized (but compliant) system image that can run in the emulator. </li>
Dirk Dougherty1f8059f2009-05-07 11:15:03 -0700301 <li>The new Eclipse ADT plugin (version 0.9.x) offers new Wizards to let you
Dirk Doughertyfe1f7892009-04-21 18:52:41 -0700302create projects targetted for specific Android configurations, generate XML
303resources (such as layouts, animations, and menus), generate alternate layouts,
304and export and sign your application for publishing.</li>
305 <li>Improved JUnit support in ADT</li>
306 <li>Easier profiling of performance</li>
307 <li>Easier management of localized applications. You can now include or
308exclude locale resources when building your APK from a single
309Android project.</li>
310 <li>A new tool called "android" replaces the activitycreator script.</li>
311 </ul>
312
313<p>For details about the Android platforms included in the SDK &mdash; including
314bug fixes, features, and API changes &mdash; please read the Version Notes
315documents available at left. For a list of Android platforms included in this
316release, see the <a href="{@docRoot}sdk/1.5_r1/index.html">Download
317page</a>.</p>
318
319<h3>Installation and Upgrade Notes</h3>
320
321<p>If you've been developing an application using an Android 1.1 SDK, you need
322to make a few changes to your development environment to migrate to the new SDK.
323Tools and documentation are provided to assist you. No changes to the source
324code of an existing application should be needed, provided that your application
325is not using Android internal structures or APIs.</p>
326
327<p>To ensure that your existing application will work properly on a device
328running the latest version of the Android platform, you are strongly encouraged
329to migrate the application to the new SDK, compile it using the platform
330matching the application's original API Level, and run it against the most
331current platform. </p>
332
333<p>If you're installing the Android SDK for the first time, please see
334the instructions in <a
335href="{@docRoot}sdk/1.5_r1/installing.html">Installing the SDK</a>.
336
337<h3>SDK Add-Ons</h3>
338
339<p>This version of the SDK introduces support for SDK add-ons, which extend the
340Android SDK to give you access to one or more external Android libraries and/or
341a customized (but compliant) system image that can run in the emulator. The
342purpose of an SDK add-on is to give you a way to develop applications for a
343specific actual device (or family of devices) that extends the APIs available to
344Android applications through external libraries or system customizations. </p>
345
346<p>From the perspective of your Android development environment, an SDK add-on
347is similar to any of the Android platform targets included in the SDK &mdash; it
348includes an external library, a system image, as well as custom emulator skins
349and system properties. The add-on differs in that the Android platform it
350provides may include customized UI, resources, or behaviors, a different set of
351preinstalled applications, or other similar modifications.
352
353<p>The SDK includes a single SDK add-on &mdash; the Google APIs add-on. The
354Google APIs add-on gives your application access to the com.google.android.maps
355external library that is included on many (if not most) Android-powered devices.
356The Google APIs add-on also includes a {@link android.location.Geocoder Geocoder}
357backend service implementation. For more information, see the "Maps External
358Library" section below. </p>
359
360<h3>Android Virtual Devices (AVDs)</h3>
361
362<p>The SDK now gives you the capability to compile an application against any
363one of several system targets, then run it in the emulator on top of any
364compatible system image. There are two types of targets:</p>
365<ul>
366<li>Targets that represent core Android platform versions. </li>
367<li>Targets that are SDK add-ons, which typically provide application access to
368one or more external libraries and/or a customized (but compliant) system image
369that can run in the emulator.
370</ul>
371
372<p>A new tool called "android" lets you discover what targets and AVDs are
373available to use.</p>
374
375<p>For more information about AVDs, see <a
376href="{@docRoot}guide/developing/tools/avd.html">Android Virtual Devices</a>
377
378<h3>Other Notes</h3>
379
380<p><strong>Maps External Library</strong></p>
381
382<p>In previous versions of the SDK, the com.google.android.maps package was
383included in the standard Android library and system image. In the Android 1.5
384SDK, that is not the case. The Android 1.5 library and system image do not
385include the Maps external library (com.google.android.maps). However, the Maps
386external library is available as part of the Google APIs add-on for the Android
387SDK, downloadable from this location: </p>
388
389<p style="margin-left:2em;"><a
390href="http://code.google.com/android/add-ons/google-apis">http://code.google.com
391/android/add-ons/google-apis</a> </p>
392
393<p>For your convenience, the Google APIs add-on is included in the SDK. </p>
394
395<p>For information about how to register for a Maps API Key, see
396<a href="http://code.google.com/android/add-ons/google-apis/mapkey.html">
397Obtaining a Maps API Key</a>.</p>
398
399<p><strong>USB Drivers for Windows</strong></p>
400
401<p>If you are using Windows and want to develop or test your application on an
402Android-powered device (such as the T-Mobile G1), you need an appropriate USB
403driver. For your convenience, the Windows version of the Android SDK includes
404these USB drivers that you can install, to let you develop on the device:</p>
405
406<ul>
407<li>USB driver for 32-bit XP and Vista</li>
408<li>USB driver for 64-bit Vista only</li>
409</ul>
410
411<p>The USB driver files are located in the
412<code>&lt;SDK&gt;/usb_driver</code> directory. For details and
413installation instructions, see <a
414href="{@docRoot}guide/developing/device.html#setting-up">Setting Up a
415Device for Development</a>.</p>
416</p>
417
418<h3>Resolved Issues, Changes</h3>
419
420<p><strong>Media</strong></p>
421<ul>
422<li>Updated documentation for {@link android.media.SoundPool
423android.media.SoundPool}</li>
424<li>{@link android.webkit.WebView} objects no longer automatically save
425thumbnails. The {@link android.webkit.WebView#capturePicture() capturePicture()}
426method will need to be called manually.</li>
427</ul>
428
429<h3>Known Issues</h3>
430
431<p><strong>Sensor problems in Emulator</strong></p>
432
433<ul>
434<li>If your application uses the Sensor API and you are running it in the
435emulator on the Android 1.5 system image, you may experience problems. Your
436application may generate ANR messages or crash when using the sensors. The
437problem is being investigated.</li>
438</ul>
439
440<p><strong>Other</strong></p>
441
442<ul>
443<li>We regret to inform developers that Android 1.5 will not include support for
444the Zilog Z80 processor architecture.</li>
445</ul>
446
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800447
448<h2 id="1.1_r1">Android 1.1 SDK, Release 1</h2>
449
Dirk Doughertyfe1f7892009-04-21 18:52:41 -0700450<p>This SDK provides the development tools and Android system image you need to
451create applications for Android-powered devices. Applications developed on this
452SDK will be compatible with mobile devices running the Android 1.1 platform.
453</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800454
Dirk Doughertyfe1f7892009-04-21 18:52:41 -0700455<p>This release provides an updated system image (Android 1.1), updated
456documentation, and the same set of development tools provided in the Android 1.0
457r2 SDK. The updated system image includes bug fixes and some smaller features,
458as well as a few minor API changes from the 1.0 version. </p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800459
Dirk Doughertyfe1f7892009-04-21 18:52:41 -0700460<p>For details about the Android 1.1 system image included in the SDK &mdash;
461including bug fixes, features, and API changes &mdash; please read the <a
462href="{@docRoot}sdk/android-1.1.html">Android 1.1 Version Notes</a>.</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800463
464<h3>App Versioning for Android 1.1</h3>
465
Dirk Doughertyfe1f7892009-04-21 18:52:41 -0700466<p>If you are using this SDK to build an application that is compatible
467<em>only</em> with Android-powered devices running the Android 1.1 platform,
468please note that you <strong>must</strong> set the the
469<code>android:minSdkVersion</code> attribute in the application's manifest to
470the API Level of Android 1.1 &mdash; "2".</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800471
Dirk Doughertyfe1f7892009-04-21 18:52:41 -0700472<p>Specifically, you specify the <code>android:minSdkVersion</code> attribute in
473a <code>&lt;uses-sdk&gt;</code> element as a child of
474<code>&lt;manifest&gt;</code> in the manifest file. When set, the attribute
475looks like this: </p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800476
477<pre><code>&lt;manifest&gt;
478 ...
Dirk Dougherty1432cd82009-05-01 10:02:17 -0700479 &lt;uses-sdk android:minSdkVersion="2" /&gt;
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800480 ...
481&lt;/manifest&gt;</code>
482</pre>
483
Dirk Doughertyfe1f7892009-04-21 18:52:41 -0700484<p>By setting <code>android:minSdkVersion</code> in this way, you ensure that
485users will only be able to install your application if their devices are running
486the Android 1.1 platform. In turn, this ensures that your application will
487function properly on their devices, especially if it uses APIs introduced in
488Android 1.1. </p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800489
Dirk Doughertyfe1f7892009-04-21 18:52:41 -0700490<p>If your application uses APIs introduced in Android 1.1 but does not declare
Dirk Dougherty1432cd82009-05-01 10:02:17 -0700491<code>&lt;uses-sdk android:minSdkVersion="2" /&gt;</code>, then it will run properly on
Dirk Doughertyfe1f7892009-04-21 18:52:41 -0700492Android 1.1 devices but <em>not</em> on Android 1.0 devices. </p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800493
Dirk Doughertyfe1f7892009-04-21 18:52:41 -0700494<p>If your application does not use any new APIs introduced in Android 1.1, you
Dirk Dougherty1432cd82009-05-01 10:02:17 -0700495can indicate Android 1.0 compatibility by removing <code>android:minSdkVersion</code> or
Dirk Doughertyfe1f7892009-04-21 18:52:41 -0700496setting the attribute to "1". However, before publishing your application, you
497must make sure to compile your application against the Android 1.0 system image
498(available in the Android 1.0 SDK), to ensure that it builds and functions
499properly for Android 1.0 devices. You should test the application against system
500images corresponding to the API Levels that the application is designed to be
501compatible with.</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800502
Dirk Doughertyfe1f7892009-04-21 18:52:41 -0700503<p>If you are sure your application is not using Android 1.1 APIs and has no
504need to use them, you might find it easier to keep working in the Android 1.0
505SDK, rather than migrating to the Android 1.1 SDK and having to do additional
506testing.</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800507
508
509<h3>ADT Plugin Compatibility</h3>
510
511<p>For this version of the SDK &mdash; Android 1.1 SDK, Release 1
512&mdash; the compatible version of the Android Development Tools (ADT)
513Plugin for Eclipse is <strong>0.8.0</strong>. If you are using a
514previous version of ADT, you should update to the latest version for use
515with this SDK. For information about how to update your ADT plugin, see
516<a href="{@docRoot}sdk/1.1_r1/upgrading.html#update-plugin">Upgrading
517the SDK</a>.</p>
518
519<h3>Installation and Upgrade Notes</h3>
520
521<p>If you've been developing an application using an Android 1.0 SDK no
522changes to your application are needed. You may want to wipe application
523user data (emulator option <code>-wipe-data</code>) when running your
524application on the Android 1.1 emulator for the first time.</p>
525
526<p>If you're installing the Android SDK for the first time, please see
527the instructions in <a
Dirk Doughertyfe1f7892009-04-21 18:52:41 -0700528href="{@docRoot}sdk/1.5_r1/installing.html">Installing the SDK</a>.
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800529
530<h3>Other Notes</h3>
531
532<p><strong>MapView API Key</strong></p>
533
534<p>com.google.android.maps.MapView is a class that lets you
535easily integrate Google Maps into your application. Before you can
536access the maps data, you will need to register with the Google Maps
537service and receive a Maps API Key, which you then add to your MapView
538for authentication to the server.</p>
539
540<p>Developers should note that the registration service for MapView is now
541active and Google Maps is actively enforcing the Maps API Key requirement.
542For information about how to register for a Maps API Key, see
Dirk Dougherty1432cd82009-05-01 10:02:17 -0700543<a href="http://code.google.com/android/add-ons/google-apis/mapkey.html">
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800544Obtaining a Maps API Key</a>.</p>
545
546<p><strong>USB Drivers for Windows</strong></p>
547
548<p>If you using Windows and want to develop or test your application on an
549Android-powered device (such as the T-Mobile G1), you need an appropriate USB
550driver. For your convenience, the Windows version of the Android SDK includes
551these USB drivers that you can install, to let you develop on the device:</p>
552
553<ul>
554<li>USB driver for 32-bit XP and Vista</li>
555<li>USB driver for 64-bit Vista only</li>
556</ul>
557
558<p>The USB driver files are located in the
559<code>&lt;SDK&gt;/usb_driver</code> directory. For details and
560installation instructions, see <a
561href="{@docRoot}guide/developing/device.html#setting-up">Setting Up a
562Device for Development</a>.</p>
563</p>
564
565<h3>Resolved Issues, Changes</h3>
566
567<p><strong>Emulator</strong></p>
568<ul>
569<li>Emulator now saves the user image in &lt;android&gt;/SDK1.1/</code></li>
570</ul>
571
572<h3>Known Issues</h3>
573
574<p><strong>JUnit and Eclipse/ADT</strong></p>
575<ul>
576<li>If you are developing in Eclipse/ADT and want to add JUnit test
577classes, you can do so. However, you need to set up a custom JUnit configuration
578before your tests will run properly. For detailed information about how to set
579up the JUnit configuration, see the troubleshooting topic <a
580href="{@docRoot}guide/appendix/faq/troubleshooting.html#addjunit">Running a Junit test class
581in Eclipse</a>.</li>
582</ul>
583
584<p><strong>Other</strong></p>
585
586<ul>
587<li>It is not possible to send MMS messages between emulator instances. </li>
588<li>In some cases, you may encounter problems when using the browser on an
589emulator started with the command-line option <code>-http-proxy</code>. </li>
590<li>On the OSX platform, if you manually remove the ~/.android directory
591using <code>rm -rf ~/.android</code>, then try to run
592the emulator, it crashes. This happens because the emulator fails to create
593a new .android directory before attempting to create the child SDK1.0 directory.
594To work around this issue, manually create a new .android directory using
595<code>mkdir ~/.android</code>, then run the emulator. The emulator
596creates the SDK1.0 directory and starts normally. </li>
597<li>We regret to inform developers that Android 1.1 will not include support
598for ARCNet network interfaces.</li>
599<li>The final set of Intent patterns honored by Android 1.0 has not yet been
600fully documented. Documentation will be provided in future releases.</li>
601<li>In ADT Editor, you can add at most ten new resource values at a time,
602in a given res/values/*.xml, using the form in the Android Resources pane.
603If you add more than ten, the Android Resources pane will not display the
604attributes fields for the additional resource entries. To work around this
605problem, you can close the file in the editor and open it again, or you
606can edit the resource entries in the XML text mode. </li>
607<li>The emulator's battery-control commands (<code>power &lt;option&gt</code>)
608are not working in this release.</li>
609</ul>
610
611
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800612<h2 id="1.0_r2">Android 1.0 SDK, Release 2</h2>
613
614<p>This SDK release includes the Android 1.0 platform and application API.
615Applications developed on this SDK will be compatible with mobile devices
616running the Android 1.0 platform.</p>
617
618<p>This release includes mainly bug fixes, although some smaller features were
619added.</p>
620
621<h3>ADT Plugin Compatibility</h3>
622
623<p>For this release of the SDK, the compatible version of the Android
624Development Tools (ADT) Plugin for Eclipse is <strong>0.8.0</strong>. If you are
625using a previous version of ADT, you should update to the latest version for use
626with this SDK. For information about how to update your ADT plugin, see <a
Scott Main8a4c53a2009-04-24 13:41:44 -0700627href="{@docRoot}sdk/1.0_r2/upgrading.html">Upgrading the SDK</a>.</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800628
629<h3>Installation and Upgrade Notes</h3>
630
631<p>If you're installing the Android SDK for the first time, please see the
Scott Main8a4c53a2009-04-24 13:41:44 -0700632instructions in <a href="{@docRoot}sdk/1.0_r2/installing.html">Installing the
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800633SDK</a>.
634
635<h3>Other Notes</h3>
636
637<p><strong>T-Mobile G1 Compatability</strong></p>
638
639<p>This version of the SDK has been tested for compatability with the first
640Android-powered mobile device, the <a href="http://www.t-mobileg1.com">T-Mobile
641G1</a>. </p>
642
643<p><strong>MapView API Key</strong></p>
644
645<p>MapView is a class that lets you easily integrate Google Maps into your
646application. Before you can access the maps data, you will need to register with
647the Google Maps service and receive a Maps API Key, which you then add to your
648MapView for authentication to the server.</p>
649
650<p>Developers should note that the registration service for MapView is now
651active and Google Maps is actively enforcing the Maps API Key requirement. For
652information about how to register for a Maps API Key, see <a
Scott Main8a4c53a2009-04-24 13:41:44 -0700653href="http://code.google.com/android/add-ons/google-apis/mapkey.html">http://code.google.com/android/add-ons/google-apis/mapkey.html</a>.
654</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800655
656<p><strong>USB Driver for Windows</strong></p>
657<p>If you using Windows and want to develop or test your application on an
658Android-powered device (such as the T-Mobile G1), you need an appropriate USB
659driver. For your convenience, the Windows version of the Android SDK includes a
660USB driver that you can install, to let you develop on the device. The USB
661driver files are located in the <code>&lt;SDK&gt;/usb_driver</code> directory.
662
663</p>
664
665<h3>Resolved Issues, Changes</h3>
666<ul>
667<li>The android.jar in this SDK release now includes several classes that were
668missing from the previous SDK. </li>
669<li>The android.R.styleable class and its fields were removed from the public
670API, to better ensure forward-compatibility for applications. The constants
671declared in android.R.styleable were platform-specific and subject to arbitrary
672change across versions, so were not suitable for use by applications. You can
673still access the platform's styleable attributes from your resources or code. To
674do so, declare a custom resource element using a
675<code>&lt;declare-styleable&gt;</code> in your project's res/values/R.attrs
676file, then declare the attribute inside. For examples, see
677&lt;sdk&gt;/samples/ApiDemos/res/values/attrs.xml. For more information about
678custom resources, see <a
Scott Main8a4c53a2009-04-24 13:41:44 -0700679href="{@docRoot}guide/topics/resources/available-resources.html#customresources">Custom
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800680Layout Resources</a>. Note that the android.R.styleable documentation is still
681provided in the SDK, but only as a reference of the platform's styleable
682attributes for the various elements.</li>
683<li>The VM now properly ensures that private classes are not
684available to applications through reflection. If you were using reflection
685to access private classes in a previous release, you will now get a run-time
686error. </li>
687
688<li>The Settings and Email applications are now included in the SDK and
689available in the emulator.</li>
690<li>We regret to inform developers that SDK 1.0_r2 does not support MFM, RLL,
691or Winchester hard disk drives.</li>
692<li>In the emulator, the control key for enabling/disabling trackball mode
693is changed from Control-T to F6. You can also enter trackball mode temporarily
694using the Delete key. While the key is pressed, you can send trackball events.</li>
695</ul>
696
697<p>Unless otherwise noted, Known Issues from the previous SDK release also apply
698to this release.</p>
699
700
701
702
703
704
705<h2 id="1.0_r1">Android 1.0 SDK, Release 1</h2>
706
707<p>This SDK release is the first to include the Android 1.0 platform and application API. Applications developed on this SDK will be compatible with mobile devices running the Android 1.0 platform, when such devices are available.</p>
708
Scott Main8a4c53a2009-04-24 13:41:44 -0700709<p>This release includes mainly bug fixes, although some smaller features were added. The Android 1.0 also includes several API changes from the 0.9 version. For those porting from the M5 release, the SDK also includes the legacy changes overview and API Differences Reports. See the current Overview of Changes for more information. </p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800710
711<h3>ADT Plugin Compatibility</h3>
712
Scott Main8a4c53a2009-04-24 13:41:44 -0700713<p>For this version of the SDK &mdash; Android 1.0 SDK, Release 1 &mdash; the compatible version of the Android Development Tools (ADT) Plugin for Eclipse is <strong>0.8.0</strong>. If you are using a previous version of ADT, you should update to the latest version for use with this SDK. For information about how to update your ADT plugin, see <a href="{@docRoot}sdk/1.0_r1/upgrading.html">Upgrading the SDK</a>.</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800714
715<h3>Installation and Upgrade Notes</h3>
716
Scott Main8a4c53a2009-04-24 13:41:44 -0700717<p>If you've been developing an application using a previous SDK version and you want the application to run on Android-powered mobile devices, you must port the application to the Android 1.0 SDK. Please see <a href="{@docRoot}sdk/1.0_r1/upgrading.html">Upgrading the SDK</a> for detailed instructions on how to make the transition to this release. Be sure to wipe application user data (emulator option <code>-wipe-data</code>) when running your application on the Android 1.0 SDK emulator.</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800718
Scott Main8a4c53a2009-04-24 13:41:44 -0700719<p>If you're installing the Android SDK for the first time, please see the instructions in <a href="{@docRoot}sdk/1.0_r1/installing.html">Installing the SDK</a>.
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800720
721<h3>Other Notes</h3>
722
723<p><strong>MapView API Key</strong></p>
724
Scott Main8a4c53a2009-04-24 13:41:44 -0700725<p>MapView is a class that lets you easily integrate Google Maps into your application. Before you can access the maps data, you will need to register with the Google Maps service and receive a Maps API Key, which you then add to your MapView for authentication to the server.</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800726
727<p>Currently, the registration service for MapView is not yet active and Google Maps is not yet enforcing the Maps API Key requirement. However, note that the registration service will be activated soon, so that MapViews in any application deployed to a mobile device will require registration and a valid Maps API Key. </p>
728
Scott Main8a4c53a2009-04-24 13:41:44 -0700729<p>As soon as the registration service becomes available, we will update the page at <a href="http://code.google.com/android/add-ons/google-apis/mapkey.html">http://code.google.com/android/add-ons/google-apis/mapkey.html</a> with details about how and where to register. Please check that page periodically for registration information, if you are using a MapView.</p>
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800730
731
732<h3>Resolved Issues, Changes</h3>
733
734<p><strong>Emulator</strong></p>
735<ul>
736<li>Emulator now saves the user image in &lt;android&gt;/SDK1.0/</code></li>
737<li>Fixed EsounD-related freezes on Linux.</li>
738<li>Fixed the documentation in -help-audio. '-audio list' doesn't work, one
739 needs to call -help-audio-out and -help-audio-in to get the list of valid
740 audio backends.</li>
741<li>Fixed scrollwheel Dpad emulation in rotated mode. before that, using the
742 scroll-wheel would always generated Dpad Up/Down events, even when in
743 landscape mode.</li>
744
745<li>Several Obsolete command options were removed.</li>
746<li>Setting the network speed through the console or the -netspeed option will
747 properly modify the connectivity icon on the device.</li>
748<li>Setting the GSM voice registration state to 'roaming' in the console will
749 properly modify the voice icon on the device</li>
750</ul>
751
752<p><strong>SQLite</strong></p>
753<ul>
754<li>SQLite is now included in the SDK package on all platforms. </li>
755</ul>
756
The Android Open Source Project9066cfe2009-03-03 19:31:44 -0800757<p><strong>Other</strong></p>
758
759<ul>
760<li>It is not possible to send MMS messages between emulator instances. </li>
761<li>In some cases, you may encounter problems when using the browser on an
762emulator started with the command-line option <code>-http-proxy</code>. </li>
763
764<li>We regret to inform developers that Android 1.0 will not include support for
765dot-matrix printers.</li>
766<li>On the OSX platform, if you manually remove the ~/.android directory
767using <code>rm -rf ~/.android</code>, then try to run
768the emulator, it crashes. This happens because the emulator fails to create
769a new .android directory before attempting to create the child SDK1.0 directory.
770To work around this issue, manually create a new .android directory using
771<code>mkdir ~/.android</code>, then run the emulator. The emulator
772creates the SDK1.0 directory and starts normally. </li>
773<li>The final set of Intent patterns honored by Android 1.0 has not yet been
774fully documented. Documentation will be provided in future releases.</li>
775<li>In ADT Editor, you can add at most ten new resource values at a time,
776in a given res/values/*.xml, using the form in the Android Resources pane.
777If you add more than ten, the Android Resources pane will not display the
778attributes fields for the additional resource entries. To work around this
779problem, you can close the file in the editor and open it again, or you
780can edit the resource entries in the XML text mode. </li>
781<li>The emulator's battery-control commands (<code>power &lt;option&gt</code>)
782are not working in this release.</li>
783
784</ul>
785