blob: b546f0f44f9c1b4101e0c65cd96dd587b2811fb3 [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>
Scott Mainb149ee82009-12-15 10:47:31 -080079 <li>Camera</li>
80 <li>Contacts</li>
81 <li>Custom Locale (developer app)</li>
82 <li>Dev Tools (developer app)</li>
Dirk Dougherty5bc32d32010-01-11 16:16:36 -080083 <li>Email</li>
Scott Mainb149ee82009-12-15 10:47:31 -080084 </ul>
85</td>
86<td style="border:0;padding-bottom:0;margin-bottom:0;padding-left:5em;">
87 <ul>
Dirk Dougherty5bc32d32010-01-11 16:16:36 -080088
Scott Mainb149ee82009-12-15 10:47:31 -080089 <li>Gallery</li>
Dirk Dougherty5bc32d32010-01-11 16:16:36 -080090 <li>IMEs for Japanese, Chinese, and Latin text input</li>
Scott Mainb149ee82009-12-15 10:47:31 -080091 <li>Messaging</li>
92 <li>Music</li>
Dirk Dougherty5bc32d32010-01-11 16:16:36 -080093 <li>Phone</li>
Scott Mainb149ee82009-12-15 10:47:31 -080094 <li>Settings</li>
95 <li>Spare Parts (developer app)</li>
96 </ul>
97</td>
98</tr>
99</table>
100
Dirk Dougherty5bc32d32010-01-11 16:16:36 -0800101
Scott Mainb149ee82009-12-15 10:47:31 -0800102<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
Dirk Dougherty95b528e2010-01-22 16:52:34 -0800221<p>Additionally, if your application uses or provides Live Wallpapers, you must
222remember to add a <a
223href="{@docRoot}guide/topics/manifest/uses-feature-element.html"><code>&lt;uses-feature></code></a>
224 element to the application's manifest, declaring the attribute
225<code>android:name="android.software.live_wallpaper"</code>. For example:</p>
226
227<pre class="no-pretty-print">
228&lt;uses-feature android:name="android.software.live_wallpaper" />
229</pre>
230
231<p>When you've published your application, Android Market checks for the
232presence of this element and uses it as a filter, ensuring that your application
233is not made available to users whose devices do not support Live Wallpapers.
234</p>
235
Scott Mainb149ee82009-12-15 10:47:31 -0800236<h4>Telephony</h4>
237
238<ul>
239<li>New {@link android.telephony.SignalStrength} class provides information
240about the device's current network signal. This can be acquired from the
241new {@link
242android.telephony.PhoneStateListener#onSignalStrengthsChanged(SignalStrength)}
243callback.</li>
244
245<li>New {@link
246android.telephony.PhoneStateListener#onDataConnectionStateChanged(int,int)}
247callback.</li>
248</ul>
249
250<h4>Views</h4>
251
252<ul>
253<li>New {@link android.view.View} methods {@link android.view.View#isOpaque()}
254and {@link android.view.View#onDrawScrollBars(Canvas)}.</li>
255
256<li>New {@link android.widget.RemoteViews} methods {@link
257android.widget.RemoteViews#addView(int,RemoteViews)} and {@link
258android.widget.RemoteViews#removeAllViews(int)}.</li>
259
260<li>New {@link android.view.ViewGroup} methods {@link
261android.view.ViewGroup#isChildrenDrawingOrderEnabled()} and {@link
262android.view.ViewGroup#setChildrenDrawingOrderEnabled(boolean)}.</li>
263</ul>
264
265<h4>WebKit</h4>
266
267<ul>
268<li>New {@link android.webkit.WebStorage} methods to manipulate web
269storage databases.</li>
270
271<li>New {@link android.webkit.GeolocationPermissions} methods to
272get Geolocation permissions from, and set them on the WebView.</li>
273
274<li>New {@link android.webkit.WebSettings} methods to manage settings for
275app cache, web storage, and zooming based on screen density.</li>
276
277<li>New {@link android.webkit.WebChromeClient} methods for handling video,
278browsing history, custom Views, app cache limits, and more.</li>
279</ul>
280
281</ul>
282
283<!--
284<h3 id="behavior-changes">Behavior changes</h3>
285
286<h3 id="bug-fixes">Bug fixes</h3>
287-->
288
289<h3 id="api-diff">API differences report</h3>
290
291<p>For a detailed view of all API changes in Android {@sdkPlatformVersion} (API
292Level {@sdkPlatformApiLevel}), as compared to API Level 6, see the <a
293href="{@docRoot}sdk/api_diff/{@sdkPlatformApiLevel}/changes.html">API
294Differences Report</a>.</p>
295