blob: 5660844c9b7e9d39137ee915fe6a75f1ed8f0fd0 [file] [log] [blame]
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07001page.title=Android 2.0, Release 1
2sdk.platform.version=2.0
3sdk.platform.apiLevel=5
4sdk.platform.majorMinor=major
5sdk.platform.releaseDate=October 2009
6sdk.platform.deployableDate=November 2009
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="#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="{@docRoot}sdk/api_diff/{@sdkPlatformApiLevel}/changes.html">API differences report &raquo;</a> </li>
25 </ol></li>
26 </ol>
27
28 <h2>See Also</h2>
29 <ol>
30 <li><a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a></li>
31 </ol>
32
33</div>
34</div>
35
36<p>
37<em>Date:</em> {@sdkPlatformReleaseDate}<br />
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 {@sdkPlatformDeployableDate}.
42The release includes new features for users and developers, as well as changes
43in the Android framework API. </p>
44
45<p>For developers, the Android {@sdkPlatformVersion} platform is available as a
46downloadable component for the Android SDK. The downloadable platform includes a
47fully compliant Android library and system image, as well as a set of emulator
48skins, sample applications, and more. The downloadable platform is fully
49compliant and includes no external libraries. </p>
50
51<p>To get started developing or testing against the Android
52{@sdkPlatformVersion} platform, use the Android SDK and AVD Manager tool to
53download the platform into your Android 1.6 or later SDK. For more information,
54see <a href="{@docRoot}sdk/adding-components.html">Adding SDK
55Components</a>.</p>
56
57
58<h2 id="features">Platform Highlights</h2>
59
60<p>For a list of new user features and platform highlights, see the <a
61href="http://developer.android.com/sdk/android-{@sdkPlatformVersion}-highlights.html">Android
62{@sdkPlatformVersion} Platform Highlights</a> document.</p>
63
64<h2 id="apps">Built-in Applications</h2>
65
66<p>The system image included in the downloadable platform provides these
67built-in applications:</p>
68
69<table style="border:0;padding-bottom:0;margin-bottom:0;">
70<tr>
71<td style="border:0;padding-bottom:0;margin-bottom:0;">
72 <ul>
73 <li>Alarm Clock</li>
74 <li>Browser</li>
75 <li>Calculator</li>
76 <li>Camcorder</li>
77 <li>Camera</li>
78 <li>Contacts</li>
79 <li>Custom Locale (developer app)</li>
80 <li>Dev Tools (developer app)</li>
81 <li>Dialer</li>
82 </ul>
83</td>
84<td style="border:0;padding-bottom:0;margin-bottom:0;padding-left:5em;">
85 <ul>
86 <li>Email</li>
87 <li>Gallery</li>
88 <li>Gestures Builder</li>
89 <li>IME for Japanese text input</li>
90 <li>Messaging</li>
91 <li>Music</li>
92 <li>Settings</li>
93 <li>Spare Parts (developer app)</li>
94 </ul>
95</td>
96</tr>
97</table>
98
99<h2 id="locs" style="margin-top:.75em;">Locales</h2>
100
101<p>The system image included in the downloadable platform provides a variety of
102built-in locales. In some cases, region-specific strings are available for the
103locales. In other cases, a default version of the language is used. The
104languages that will be available in the Android 1.6 system image are listed
105below (with <em>language</em>_<em>country/region</em> locale descriptor).</p>
106
107<table style="border:0;padding-bottom:0;margin-bottom:0;">
108<tr>
109<td style="border:0;padding-bottom:0;margin-bottom:0;">
110<ul>
111<li>Chinese, PRC (zh_CN)</li>
112<li>Chinese, Taiwan (zh_TW)</li>
113<li>Czech (cs_CZ)</li>
114<li>Dutch, Netherlands (nl_NL)</li>
115<li>Dutch, Belgium (nl_BE)</li>
116<li>English, US (en_US)</li>
117<li>English, Britain (en_GB)</li>
118<li>English, Canada (en_CA)</li>
119<li>English, Australia (en_AU)</li>
120<li>English, New Zealand (en_NZ)</li>
121<li>English, Singapore(en_SG)</li>
122<li>French, France (fr_FR)</li>
123<li>French, Belgium (fr_BE)</li>
124</ul>
125</td>
126<td style="border:0;padding-bottom:0;margin-bottom:0;padding-left:5em;">
127<li>French, Canada (fr_CA)</li>
128<li>French, Switzerland (fr_CH)</li>
129<li>German, Germany (de_DE)</li>
130<li>German, Austria (de_AT)</li>
131<li>German, Switzerland (de_CH)</li>
132<li>German, Liechtenstein (de_LI)</li>
133<li>Italian, Italy (it_IT)</li>
134<li>Italian, Switzerland (it_CH)</li>
135<li>Japanese (ja_JP)</li>
136<li>Korean (ko_KR)</li>
137<li>Polish (pl_PL)</li>
138<li>Russian (ru_RU)</li>
139<li>Spanish (es_ES)</li>
140</td>
141</tr>
142</table>
143
144<p>Localized UI strings match the locales that are accessible
145through Settings.</p>
146
147<h2 id="api-changes">Emulator Skins</h2>
148
149<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>
150
151<ul>
152 <li>
153 QVGA (240x320, low density, small screen)
154 </li>
155 <li>
156 WQVGA (240x400, low density, normal screen)
157 </li>
158 <li>
159 FWQVGA (240x432, low density, normal screen)
160 </li>
161 <li>
162 HVGA (320x480, medium density, normal screen)
163 </li>
164 <li>
165 WVGA800 (480x800, high density, normal screen)
166 </li>
167 <li>
168 WVGA854 (480x854 high density, normal screen)
169 </li>
170</ul>
171
172<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>
173
174<h2 id="dev-features">Developer Features</h2>
175
176<p>The sections below provide information about new developer features offered by the downloadable Android 2.0 platform component.</p>
177
178<h3 id="ant">Ant Support</h3>
179
180<ul>
181<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}guide/publishing/app-signing.html#releasecompile">Signing Your Applications</a>.</li>
182
183<li>Adds new Ant build system with support for Emma instrumentation projects (code coverage).</li>
184</ul>
185
186<h2 id="api">Framework API</h2>
187
188<p>The sections below provide information about the application framework API provided by the Android {@sdkPlatformVersion} platform. </p>
189
190
191<h3 id="api-level">API level</h3>
192
193<p>The Android {@sdkPlatformVersion} platform delivers an updated version of the framework
194API. As with previous versions, the Android {@sdkPlatformVersion} API
195is assigned an integer identifier &mdash; <strong>{@sdkPlatformApiLevel}</strong> &mdash; that is
196stored in the system itself. This identifier, called the "API Level", allows the
197system to correctly determine whether an application is compatible with
198the system, prior to installing the application. </p>
199
200<p>To use APIs introduced in Android {@sdkPlatformVersion} in your application, you need to
201set the proper value, "{@sdkPlatformApiLevel}", in the <code>&lt;uses-sdk&gt;</code> attributes in your
202application's manifest. </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<h3 id="api-changes">API changes summary</h3>
208
209<h4>Bluetooth</h4>
210<ul>
211<li>Turn on/off Bluetooth</li>
212<li>Device and service discovery</li>
213<li>Connect to a remote device using RFCOMM and send/receive data</li>
214<li>Advertise RFCOMM services and listen for incoming RFCOMM connection</li>
215</ul>
216
217<h4>Sync adapters </h4>
218<ul>
219<li>New APIs for sync adapters to connect to any backend</li>
220</ul>
221
222<h4>Account Manager</h4>
223<ul>
224<li>Centralized account manager API to securely store and access auth tokens/passwords </li>
225</ul>
226
227<h4>Contacts</h4>
228<ul>
229<li>New contacts APIs that allow for data from multiple accounts</li>
230<li>New Quick Contact framework APIs enable developers to create contact badges in their app. Clicking on the badge opens a window with a list of ways to contact the person with one click.</li>
231</ul>
232
233<h4>WebView</h4>
234<ul>
235<li>HTML5 support:
236 <ul>
237 <li>Database API support, for client-side databases using SQL.</li>
238 <li>Application cache support, for offline applications.</li>
239 <li>Geolocation API support, to provide location information about the device.</li>
240 <li>&lt;video&gt; tag support in Fullscreen mode.</li>
241 </ul>
242</li>
243<li>Deprecated Gears; HTML5 database APIs now supported instead.</li>
244<li>Deprecated classes: UrlInterceptHandler, Plugin, PluginData, PluginList, UrlInterceptRegistry.</li>
245<li>DPI support for WebView
246 <ul>
247 <li>In viewport meta tag, target-densityDpi can be specified to control the default zoom.</li>
248 <li>&lt;meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,target-densityDpi=device-dpi"/&gt; will ensure the page to be loaded with 100% on any dpi devices.</li>
249 </ul>
250</li>
251</ul>
252
253<h4>Camera</h4>
254<ul>
255<li>New parameters for color effect, scene mode, flash mode, focus mode, white balance, rotation, and other settings.</li>
256<li>New ZoomCallback interface to perform actions when the zoom level has changed.</li>
257</ul>
258
259<h4>Media</h4>
260<ul>
261<li>MediaScanner now generates thumbnails for all images when they are inserted into MediaStore.</li>
262<li>New Thumbnail API for retrieving image and video thumbnails on demand.</li>
263</ul>
264
265<h4>Other Framework</h4>
266<ul>
267<li>New system themes in android.R.style to easily display activities on top of the current system wallpaper or keep the previous activity visible in the background. </li>
268<li>New WallpaperManager API replaces and extends the wallpaper APIs that were previously in Context, to allow applications to request and set the system wallpaper.</li>
269<li>New Service APIs to help applications correctly handle Service life-cycle, in particular low memory situations where a Service may be killed while it is running.
270 <ul>
271 <li>Service.setForeground() has been deprecated and now effectively performs no operation. This is replaced with a new API, startForeground(), that helps (and requires) associating an ongoing notification with the foreground state.</li>
272 </ul>
273</li>
274<li>MotionEvent can now report simultaneous-touch information for devices that support it. Up to three pointers can be tracked simultaneously. </li>
275<li>KeyEvent has new key dispatching APIs, to help implement action-on-up and long press behavior, as well a new mechanism to cancel key presses (for virtual keys).</li>
276<li>WindowManager.LayoutParams has new constants that allow a window to wake up the screen when it is displayed and show the window even if the screen is locked. This allows applications to more cleanly implement things like alarm clocks that should wake the device.</li>
277<li>New Intent APIs that broadcast the docking state of the device and allow applications to launch special activities when the device is placed in a desktop or car dock.</li>
278</ul>
279
280<h3 id="api-diff">API differences report</h3>
281
282<p>For a detailed view of API changes in Android {@sdkPlatformVersion} (API Level {@sdkPlatformApiLevel}), as compared to
283the previous version, see the <a
284href="{@docRoot}sdk/api_diff/{@sdkPlatformApiLevel}/changes.html">API Differences Report</a>.</p>
285