blob: 6e0716c18bb998ad5b154eee5b007ae411d318af [file] [log] [blame]
The Android Open Source Projectd24b8182009-02-10 15:44:00 -08001page.title=SDK Release Notes
2sdk.version=1.1_r1
3@jd:body
4
5<p>This document provides version-specific information about Android SDK releases. For the latest known issues, please ensure that you're viewing this page at: <a href="http://developer.android.com/sdk/RELEASENOTES.html">http://developer.android.com/sdk/RELEASENOTES.html</a>.</p>
6
7<h2>Android 1.1 SDK, Release 1</h2>
8
9<p>This SDK provides the development tools and Android system image you need to create applications for Android-powered devices. Applications developed on this SDK will be compatible with mobile devices running the Android 1.1 platform. </p>
10
11<p>This release provides an updated system image (Android 1.1), updated documentation, and the same set of development tools provided in the Android 1.0 r2 SDK. The updated system image includes bug fixes and some smaller features, as well as a few minor API changes from the 1.0 version. </p>
12
13<p>For details about the Android 1.1 system image included in the SDK &mdash; including bug fixes, features, and API changes &mdash; please read the <a href="{@docRoot}sdk/android-1.1.html">Android 1.1 Version Notes</a>.</p>
14
15<h3>App Versioning for Android 1.1</h3>
16
17<p>If you are using this SDK to build an application that is compatible <em>only</em> with Android-powered devices running the Android 1.1 platform, please note that you <strong>must</strong> set the the <code>android:minSdkVersion</code> attribute in the application's manifest to the API Level of Android 1.1 &mdash; "2".</p>
18
19<p>Specifically, you specify the <code>android:minSdkVersion</code> attribute in a <code>&lt;uses-sdk&gt;</code> element as a child of <code>&lt;manifest&gt;</code> in the manifest file. When set, the attribute looks like this: </p>
20
21<pre><code>&lt;manifest&gt;
22 ...
23 &lt;uses-sdk minSdkVersion="2"&gt;
24 ...
25&lt;/manifest&gt;</code>
26</pre>
27
28<p>By setting <code>android:minSdkVersion</code> in this way, you ensure that users will only be able to install your application if their devices are running the Android 1.1 platform. In turn, this ensures that your application will function properly on their devices, especially if it uses APIs introduced in Android 1.1. </p>
29
30<p>If your application uses APIs introduced in Android 1.1 but does not declare <code>&lt;uses-sdk minSdkVersion="2"&gt;</code>, then it will run properly on Android 1.1 devices but <em>not</em> on Android 1.0 devices. </p>
31
32<p>If your application does not use any new APIs introduced in Android 1.1, you can indicate Android 1.0 compatibility by removing <code>minSdkVersion</code> or setting the attribute to "1". However, before publishing your application, you must make sure to compile your application against the Android 1.0 system image (available in the Android 1.0 SDK), to ensure that it builds and functions properly for Android 1.0 devices. You should test the application against system images corresponding to the API Levels that the application is designed to be compatible with.</p>
33
34<p>If you are sure your application is not using Android 1.1 APIs and has no need to use them, you might find it easier to keep working in the Android 1.0 SDK, rather than migrating to the Android 1.1 SDK and having to do additional testing.</p>
35
36
37<h3>ADT Plugin Compatibility</h3>
38
39<p>For this version of the SDK &mdash; Android 1.1 SDK, Release 1
40&mdash; the compatible version of the Android Development Tools (ADT)
41Plugin for Eclipse is <strong>0.8.0</strong>. If you are using a
42previous version of ADT, you should update to the latest version for use
43with this SDK. For information about how to update your ADT plugin, see
44<a href="{@docRoot}sdk/1.1_r1/upgrading.html#update-plugin">Upgrading
45the SDK</a>.</p>
46
47<h3>Installation and Upgrade Notes</h3>
48
49<p>If you've been developing an application using an Android 1.0 SDK no
50changes to your application are needed. You may want to wipe application
51user data (emulator option <code>-wipe-data</code>) when running your
52application on the Android 1.1 emulator for the first time.</p>
53
54<p>If you're installing the Android SDK for the first time, please see
55the instructions in <a
56href="{@docRoot}sdk/1.1_r1/installing.html">Installing the SDK</a>.
57
58<h3>Other Notes</h3>
59
60<p><strong>MapView API Key</strong></p>
61
62<p>com.google.android.maps.MapView is a class that lets you
63easily integrate Google Maps into your application. Before you can
64access the maps data, you will need to register with the Google Maps
65service and receive a Maps API Key, which you then add to your MapView
66for authentication to the server.</p>
67
68<p>Developers should note that the registration service for MapView is now
69active and Google Maps is actively enforcing the Maps API Key requirement.
70For information about how to register for a Maps API Key, see
71<a href="{@docRoot}guide/topics/location/geo/mapkey.html">
72Obtaining a Maps API Key</a>.</p>
73
74<p><strong>USB Drivers for Windows</strong></p>
75
76<p>If you using Windows and want to develop or test your application on an
77Android-powered device (such as the T-Mobile G1), you need an appropriate USB
78driver. For your convenience, the Windows version of the Android SDK includes
79these USB drivers that you can install, to let you develop on the device:</p>
80
81<ul>
82<li>USB driver for 32-bit XP and Vista</li>
83<li>USB driver for 64-bit Vista only</li>
84</ul>
85
86<p>The USB driver files are located in the
87<code>&lt;SDK&gt;/usb_driver</code> directory. For details and
88installation instructions, see <a
89href="{@docRoot}guide/developing/device.html#setting-up">Setting Up a
90Device for Development</a>.</p>
91</p>
92
93<h3>Resolved Issues, Changes</h3>
94
95<p><strong>Emulator</strong></p>
96<ul>
97<li>Emulator now saves the user image in &lt;android&gt;/SDK1.1/</code></li>
98</ul>
99
100<h3>Known Issues</h3>
101
102<p><strong>JUnit and Eclipse/ADT</strong></p>
103<ul>
104<li>If you are developing in Eclipse/ADT and want to add JUnit test
105classes, you can do so. However, you need to set up a custom JUnit configuration
106before your tests will run properly. For detailed information about how to set
107up the JUnit configuration, see the troubleshooting topic <a
108href="{@docRoot}guide/appendix/faq/troubleshooting.html#addjunit">Running a Junit test class
109in Eclipse</a>.</li>
110</ul>
111
112<p><strong>Other</strong></p>
113
114<ul>
115<li>It is not possible to send MMS messages between emulator instances. </li>
116<li>In some cases, you may encounter problems when using the browser on an
117emulator started with the command-line option <code>-http-proxy</code>. </li>
118<li>We regret to inform developers that Android 1.1 will not include support for
119dot-matrix printers.</li>
120<li>On the OSX platform, if you manually remove the ~/.android directory
121using <code>rm -rf ~/.android</code>, then try to run
122the emulator, it crashes. This happens because the emulator fails to create
123a new .android directory before attempting to create the child SDK1.0 directory.
124To work around this issue, manually create a new .android directory using
125<code>mkdir ~/.android</code>, then run the emulator. The emulator
126creates the SDK1.0 directory and starts normally. </li>
127<li>The final set of Intent patterns honored by Android 1.0 has not yet been
128fully documented. Documentation will be provided in future releases.</li>
129<li>In ADT Editor, you can add at most ten new resource values at a time,
130in a given res/values/*.xml, using the form in the Android Resources pane.
131If you add more than ten, the Android Resources pane will not display the
132attributes fields for the additional resource entries. To work around this
133problem, you can close the file in the editor and open it again, or you
134can edit the resource entries in the XML text mode. </li>
135<li>The emulator's battery-control commands (<code>power &lt;option&gt</code>)
136are not working in this release.</li>
137</ul>
138