blob: 1a603afb40c7292c2c9703a0d37eeb123f49082e [file] [log] [blame]
Dirk Dougherty50f8445e2010-11-11 11:52:05 -08001page.title=Android 2.3 Platform Highlights
2
3@jd:body
4
5
6<style type="text/css">
7#jd-content {
8 max-width:1200px;
9}
10#jd-content div.screenshot {
11 float:left;
12 clear:left;
13 padding:15px 30px 15px 0;
14}
15#jd-content div.video {
16 float:right;
17 padding:0 60px 40px;
18 margin-top:-15px;
19}
20#jd-content table.columns {
21 margin:0 0 1em 0;
22}
23#jd-content table.columns td {
24 padding:0;
25}
26#jd-content table.columns td+td {
27 padding:0 2em;
28}
29#jd-content table.columns td img {
30 margin:0;
31}
32#jd-content table.columns td+td>*:first-child {
33 margin-top:-2em;
34}
35.green {
36 color:#8db529;
37 font-weight:bold;
38}
39</style>
40
41<div class="video">
42<object width="278" height="180">
43<param name="movie" value="http://www.youtube.com/v/yAZYSVr2Bhc&hl=en&fs=1&"></param>
44<param name="allowFullScreen" value="true"></param><param name="allowscriptaccess"
45value="always"></param>
46<embed src="http://www.youtube.com/v/yAZYSVr2Bhc&hl=en&fs=1&" type="application/x-shockwave-flash"
47allowscriptaccess="always" allowfullscreen="true" width="278" height="180"></embed>
48</object>
49</div>
50
51<p>The Android 2.3 platform introduces many new and exciting features for
52users and developers. This document provides a glimpse at some of the new user features
53and technologies in Android 2.3. For detailed information about the new developer APIs, see the <a
54href="android-2.3.html#api">Android 2.3 version notes</a>.</p>
55
56<ul>
57 <li><a href="#UserFeatures">New User Features</a></li>
58 <li><a href="#DeveloperApis">New Developer Features</a></li>
59 <li><a href="#PlatformTechnologies">New Platform Technologies</a></li>
60</ul>
61
62
63<h2 id="UserFeatures" style="clear:right">New User Features</h2>
64
65<div>
66<img style="float:right;padding-bottom:2em;" src="images/2.3/home-menu.png" alt="" height="280" />
67<img style="float:right;padding-bottom:2em;" src="images/2.3/home-plain.png" alt="" height="280" />
68
69<h3>UI refinements for simplicity and speed</h3>
70
71<p>The user interface is refined in many ways across the system, making it
72easier to learn, faster to use, and more power-efficient. A simplified
73visual theme of colors against black brings vividness and contrast to the
74notification bar, menus, and other parts of the UI. Changes in menus and
75settings make it easier for the user to navigate and control the features
76of the system and device. </p>
77
78<h3>Faster, more intuitive text input</h3>
79
80<p>The Android soft keyboard is redesigned and optimized for faster text input
81and editing. The keys themselves are reshaped and repositioned for improved
82targeting, making them easier to see and press accurately, even at high speeds.
83The keyboard also displays the current character and dictionary suggestions in a
84larger, more vivid style that is easier to read.</p>
85
86<p>The keyboard adds the capability to correct entered words from suggestions in
87the dictionary. As the user selects a word already entered, the keyboard
88displays suggestions that the user can choose from, to replace the selection.
89The user can also switch to voice input mode to replace the selection. Smart
90suggestions let the user accept a suggestion and then return to correct it
91later, if needed, from the original set of suggestions.</p>
92
93<p>New multitouch key-chording lets the user quickly enter numbers and symbols
94by pressing Shift+&lt;<em>letter</em>&gt; and ?123+&lt;<em>symbol</em>&gt;,
95without needing to manually switch input modes. From certain keys, users can
96also access a popup menu of accented characters, numbers, and symbols by holding
97the key and sliding to select a character.</p>
98</div>
99
100<div style="padding-top:1em;">
101<div style="margin-right:1em;float:left;"><img src="images/2.3/onetouch.png" alt="" height="260" /></div>
102<div style="padding-right:2em;float:left;"><img src="images/2.3/selection.png" alt="" height="160" /></div>
103
104
105<h3>One-touch word selection and copy/paste</h3>
106
107<p>When entering text or viewing a web page, the user can quickly select a word
108by press-hold, then copy to the clipboard and paste. Pressing on a word enters a
109free-selection mode &mdash; the user can adjust the selection area as needed by
110dragging a set of bounding arrows to new positions, then copy the bounded area
111by pressing anywhere in the selection area. For text entry, the user can
112slide-press to enter a cursor mode, then reposition the cursor easily and
113accurately by dragging the cursor arrow. With both the selection and cursor
114modes, no use of a trackball is needed.</p>
115
116</div>
117
118<div style="clear:left">
119<div style="padding-right:2em;float:right;"><img src="images/2.3/running.png" alt="" height="280" /></div>
120<div style="padding-left:1em;float:right;"><img src="images/2.3/power.png" alt="" height="280" /></div>
121
122<h3>Improved power management </h3>
123
124<p>The Android system takes a more active role in managing apps that are keeping
125the device awake for too long or that are consuming CPU while running in the
126background. By managing such apps &mdash; closing them if appropriate &mdash;
127the system helps ensure best possible performance and maximum battery life.</p>
128
129<p>The system also gives the user more visibility over the power being consumed
130by system components and running apps. The Application settings provides an
131accurate overview of how the battery is being used, with details of the usage
132and relative power consumed by each component or application.</p>
133
134<h3>Control over applications</h3>
135
136<p>A shortcut to the Manage Applications control now appears in the Options Menu
137in the Home screen and Launcher, making it much easier to check and manage
138application activity. Once the user enters Manage Applications, a new Running
139tab displays a list of active applications and the storage and memory being used
140by each. The user can read further details about each application and if
141necessary stop an application or report feedback to its developer. </p>
142</div>
143
144<h3>New ways of communicating, organizing</h3>
145
146<p>An updated set of standard applications lets the user take new approaches to
147managing information and relationships. </p>
148
149<div style="padding-top:1em;">
150<div style="padding-right:1.5em;float:left;"><img src="images/2.3/sipcall.png" alt="" height="190" align="left"/><br>
151<img src="images/2.3/ffc.png" alt="" height="190" align="left" style="margin-bottom:1.5em;margin-top:.75em;"/><div></div>
152</div>
153
154<p style="margin-top:1em;margin-bottom:.75em;"><strong>Internet calling</strong></p>
155
156<p>The user can make voice calls over the internet to other users who have SIP
157accounts. The user can add an internet calling number (a SIP address) to any
158Contact and can initiate a call from Quick Contact or Dialer. To use internet
159calling, the user must create an account at the SIP provider of their choice
160&mdash; SIP accounts are not provided as part of the internet calling feature.
161Additionally, support for the platform's SIP and internet calling features on
162specific devices is determined by their manufacturers and associated carriers.
163</p>
164
165<div style="padding-right:1.5em;float:right;;"><img src="images/2.3/nfc.png" alt="" height="190" /> </div>
166
167<p style="margin-top:1.25em;margin-bottom:.75em;"><strong>Near-field communications</strong></p>
168
169<p>An NFC Reader application lets the user read and interact with near-field
170communication (NFC) tags. For example, the user can “touch” or “swipe” an NFC
171tag that might be embedded in a poster, sticker, or advertisement, then act on
172the data read from the tag. A typical use would be to read a tag at a
173restaurant, store, or event and then rate or register by jumping to a web site
174whose URL is included in the tag data. NFC communication relies on wireless
175technology in the device hardware, so support for the platform's NFC features on
176specific devices is determined by their manufacturers.
177</p>
178</div>
179
180<p style="margin-top:1.25em;margin-bottom:.75em;"><strong>Downloads management</strong></p>
181
182<p>The Downloads application gives the user easy access to any file downloaded from
183the browser, email, or another application. Downloads is built on an completely new
184download manager facility in the system that any other applications can use, to
185more easily manage and store their downloads.</p>
186
187<p style="margin-top:1.25em;margin-bottom:.75em;"><strong>Camera</strong></p>
188
189<p>The application now lets the user access multiple cameras on the device,
190including a front-facing camera, if available. </p>
191
192
193<h2 id="DeveloperApis" style="clear:both">New Developer Features</h2>
194
195<p>Android 2.3 delivers a variety of features and APIs that
196let developers bring new types of applications to the Android
197platform.</p>
198
199 <ul>
200<li><a href="#gaming">Enhancements for gaming</a></li>
201<li><a href="#communication">New forms of communication</a></li>
202<li><a href="#multimedia">Rich multimedia</a></li>
203</ul>
204
205<h3 id="gaming">Enhancements for gaming</h3>
206
207<p style="margin-top:.75em;margin-bottom:.75em;"><strong>Performance</strong></p>
208
209<p>Android 2.3 includes a variety of improvements across the system that make
210common operations faster and more efficient for all applications. Of particular
211interest to game developers are:</p>
212
213<ul>
214<li>Concurrent garbage collector &mdash; The Dalivik VM introduces a new,
215concurrent garbage collector that minimizes application pauses, helping to
216ensure smoother animation and increased responsiveness in games and similar
217applications. </li>
218<li>Faster event distribution &mdash; The plaform now handles touch and keyboard
219events faster and more efficiently, minimizing CPU utilization during event
220distribution. The changes improve responsiveness for all applications, but
221especially benefit games that use touch events in combination with 3D graphics
222or other CPU-intensive operations. </li>
223<li>Updated video drivers &mdash; The platform uses updated third-party video
224drivers that improve the efficiency of OpenGL ES operations, for faster overall
2253D graphics performance. </li>
226</ul>
227
228
229<p style="margin-top:1.25em;margin-bottom:.75em;"><strong>Native input and
230sensor events</strong></p>
231
232<p>Applications that use native code can now receive and process input and
233sensor events directly in their native code, which dramatically improves
234efficiency and responsiveness. </p>
235
236<p>Native libraries exposed by the platform let applications handle the same
237types of input events as those available through the framework. Applications
238can receive events from all supported sensor types and can enable/disable
239specific sensors and manage event delivery rate and queueing. </p>
240
241
242<p style="margin-top:1.25em;margin-bottom:.75em;"><strong>Gyroscope and other
243new sensors, for improved 3D motion processing</strong></p>
244
245<p>Android 2.3 adds API support for several new sensor types, including
246gyroscope, rotation vector, linear acceleration, gravity, and barometer sensors.
247Applications can use the new sensors in combination with any other sensors
248available on the device, to track three-dimensional device motion and
249orientation change with high precision and accuracy. For example, a game
250application could use readings from a gyroscope and accelerometer on the device
251to recognize complex user gestures and motions, such as tilt, spin, thrust, and
252slice. </p>
253
254<p style="margin-top:1.25em;margin-bottom:.75em;"><strong>Low-latency native
255audio</strong></p>
256
257<p>The platform provides a software implementation of <a
258href="http://www.khronos.org/opensles/">Khronos OpenSL ES</a>, a standard API
259that gives applications access to powerful audio controls and effects from
260native code. Applications can use the API to manage audio devices and control
Scott Main071360d2010-12-14 16:35:36 -0800261audio input, output, and processing directly from native code.</p>
Dirk Dougherty50f8445e2010-11-11 11:52:05 -0800262
263<p style="margin-top:1.25em;margin-bottom:.75em;"><strong>Native graphics
264management</strong></p>
265
266<p>The platform provides an interface to its <a
267href="http://www.khronos.org/egl/">Khronos EGL</a> library, which lets
268applications manage graphics contexts and create and manage OpenGL ES textures
269and surfaces from native code.</p>
270
271
272<p style="margin-top:1.25em;margin-bottom:.75em;"><strong>Native access to
273Activity lifecycle, window management</strong></p>
274
275<p>Native applications can declare a new type of Activity class,
276<code>NativeActivity</code> whose lifecycle callbacks are implemented directly
277in native code. The <code>NativeActivity</code> and its underlying native code
278run in the system just as do other Activities &mdash; they run in the
279application's system process and execute on the application's main UI thread,
280and they receive the same lifecycle callbacks as do other Activities. </p>
281
282<p>The platform also exposes native APIs for managing windows, including the
283ability to lock/unlock the pixel buffer to draw directly into it. Through the
284API, applications can obtain a native window object associated with a framework
285Surface object and interact with it directly in native code.</p>
286
287
288<p style="margin-top:1.25em;margin-bottom:.75em;"><strong>Native access to
289assets, storage</strong></p>
290
291<p>Applications can now access a native Asset Manager API to retrieve
292application assets directly from native code without needing to go through JNI.
293If the assets are compressed, the platform does streaming decompression as the
294application reads the asset data. There is no longer a limit on the size of
295compressed <code>.apk</code> assets that can be read.</p>
296
297<p>Additionally, applications can access a native Storage Manager API to work
298directly with OBB files downloaded and managed by the system. Note that although
299platform support for OBB is available in Android 2.3, development tools for
300creating and managing OBB files will not be available until early 2011.</p>
301
302
303<p style="margin-top:1.25em;margin-bottom:.75em;"><strong>Robust native
304development environment</strong></p>
305
306<p>The Android NDK (r5 or higher) provides a complete set of tools, toolchains,
307and libraries for developing applications that use the rich native environment
308offered by the Android 2.3 platform. For more information or to download the
309NDK, please see the <a
310href="http://developer.android.com/sdk/ndk/index.html">Android&nbsp;NDK</a>
311page. </p>
312
313
314<h3 id="communication">New forms of communication</h3>
315
316<p style="margin-top:.75em;margin-bottom:.75em;"><strong>Internet
317telephony</strong></p>
318
319<p>Developers can now add SIP-based internet telephony features to their
320applications. Android 2.3 includes a full SIP protocol stack and integrated call
321management services that let applications easily set up outgoing and incoming
322voice calls, without having to manage sessions, transport-level communication,
323or audio record or playback directly. </p>
324
325<p>Support for the platform's SIP and internet calling features on specific
326devices is determined by their manufacturers and associated carriers.</p>
327
328
329<p style="margin-top:1.25em;margin-bottom:.75em;"><strong>Near Field
330Communications (NFC)</strong></p>
331
332<p>The platform's support for Near Field Communications (NFC) lets developers
333get started creating a whole new class of applications for Android. Developers
334can create new applications that offer proximity-based information and services
335to users, organizations, merchants, and advertisers. </p>
336
337<p>Using the NFC API,
338applications can respond to NFC tags “discovered” as the user “touches” an
339NFC-enabled device to elements embedded in stickers, smart posters, and even
340other devices. When a tag of interest is collected, applications can respond to
341the tag, read messages from it, and then store the messages, prompting
342the user as needed. </p>
343
344<p>NFC communication relies on wireless technology in the device hardware, so
345support for the platform's NFC features on specific devices is determined by
346their manufacturers.</p>
347
348
349<h3 id="multimedia">Rich multimedia</h3>
350
351<p style="margin-top:.75em;margin-bottom:.75em;"><strong>Mixable audio
352effects</strong></p>
353
354<p>A new audio effects API lets developers easily create rich audio environments
355by adding equalization, bass boost, headphone virtualization (widened
356soundstage), and reverb to audio tracks and sounds. Developers can mix multiple
357audio effects in a local track or apply effects globally, across multiple
358tracks.</p>
359
360<p style="margin-top:1.25em;margin-bottom:.75em;"><strong>Support for new media
361formats</strong></p>
362
363<p>The platform now offers built-in support for the VP8 open video compression
364format and the WebM open container format. The platform also adds support for
365AAC encoding and AMR wideband encoding (in software), so that applications can
366capture higher quality audio than narrowband. </p>
367
368<p style="margin-top:1.25em;margin-bottom:.75em;"><strong>Access to multiple
369cameras</strong></p>
370
371<p>The Camera API now lets developers access any cameras that are available on a
372device, including a front-facing camera. Applications can query the platform for
373the number of cameras on the device and their types and characteristics, then
374open the camera needed. For example, a video chat application might want to access a
375front-facing camera that offers lower-resolution, while a photo application
376might prefer a back-facing camera that offers higher-resolution.</p>
377
378
379<h2 id="PlatformTechnologies">New Platform Technologies</h2>
380
381<h3>Media Framework</h3>
382
383<ul>
384<li>New media framework fully replaces OpenCore, maintaining all previous
385codec/container support for encoding and decoding.</li>
386<li>Integrated support for the VP8 open video compression format and the WebM
387open container format</li>
388<li>Adds AAC encoding and AMR wideband encoding</li>
389</ul>
390
391<h3>Linux Kernel </h3>
392<ul>
393<li>Upgraded to 2.6.35</li>
394</ul>
395
396<h3>Networking</h3>
397<ul>
398<li>SIP stack, configurable by device manufacturer
399<li>Support for Near Field Communications (NFC), configurable by device manufacturer</li>
400<li>Updated BlueZ stack</li>
401</ul>
402
403<h3>Dalvik runtime</h3>
404
405<ul>
406<li>Dalvik VM:
407<ul>
408<li>Concurrent Garbage Collector (target sub-3ms pauses)</li>
409<li>Adds further JIT (code-generation) optimizations</li>
410<li>Improved code verification</li>
411<li>StrictMode debugging, for identifying performance and memory issues</li>
412</ul>
413</li>
414
415
416<li>Core libraries:
417<ul>
418 <li>Expanded I18N support (full worldwide encodings, more locales)
419 <li>Faster Formatter and number formatting. For example, float formatting is 2.5x faster.</li>
420 <li>HTTP responses are gzipped by default. XML and JSON API response sizes may be reduced by 60% or more.</li>
421 <li>New collections and utilities APIs</li>
422 <li>Improved network APIs</li>
423 <li>Improved file read and write controls</li>
424 <li>Updated JDBC</li>
425</ul>
426</li>
427
428<li>Updates from upstream projects:
429 <ul>
430 <li>OpenSSL 1.0.0a</li>
431 <li>BouncyCastle 1.45</li>
432 <li>ICU 4.4</li>
433 <li>zlib 1.2.5</li>
434 </ul>
435</li>
436
437
438</ul>
439
440<p>For more information about the new developer APIs, see the <a
441href="android-2.3.html#api">Android 2.3 version notes</a> and the <a
442href="{@docRoot}sdk/api_diff/9/changes.html">API Differences Report</a>.</p>