Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame^] | 1 | page.title=Android 1.6 Platform |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 2 | sdk.platform.version=1.6 |
| 3 | sdk.platform.apiLevel=4 |
| 4 | sdk.platform.majorMinor=minor |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 5 | sdk.platform.releaseDate=December 2009 |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 6 | sdk.platform.deployableDate=October 2009 |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 7 | |
| 8 | @jd:body |
| 9 | |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 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> |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame^] | 16 | <li><a href="#relnotes">Revisions</a></li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 17 | <li><a href="#apps">Built-in Applications</a></li> |
| 18 | <li><a href="#locs">Locales</a></li> |
| 19 | <li><a href="#skins">Emulator Skins</a></li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 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 »</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 | |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 36 | <p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 37 | <em>API Level:</em> <strong>{@sdkPlatformApiLevel}</strong></p> |
| 38 | |
| 39 | <p>Android {@sdkPlatformVersion} is a {@sdkPlatformMajorMinor} platform release |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 40 | deployable to Android-powered handsets since {@sdkPlatformDeployableDate}. |
| 41 | The platform includes new features for users and developers, as well as changes |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 42 | in the Android framework API. </p> |
| 43 | |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 44 | <p>For developers, a new release of the Android {@sdkPlatformVersion} platform |
| 45 | is available as a downloadable component for the Android SDK. The platform |
| 46 | — Android 1.6 r2 — includes a fully compliant Android library and |
| 47 | system image, as well as a set of emulator skins, sample applications, and minor |
| 48 | development updates. The downloadable platform is fully compliant (API Level 4) |
| 49 | and includes no external libraries.</p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 50 | |
| 51 | <p>To get started developing or testing against the Android |
| 52 | {@sdkPlatformVersion} platform, use the Android SDK and AVD Manager tool to |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 53 | download the latest Android 1.6 platform into your Android 1.6 or later SDK. For |
| 54 | more information, see <a href="{@docRoot}sdk/adding-components.html">Adding SDK |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 55 | Components</a>.</p> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 56 | |
| 57 | |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 58 | <h2 id="features">Platform Highlights</h2> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 59 | |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 60 | <p>For a list of new user features and platform highlights, see the <a |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 61 | href="http://developer.android.com/sdk/android-{@sdkPlatformVersion}-highlights.html">Android |
| 62 | {@sdkPlatformVersion} Platform Highlights</a> document.</p> |
| 63 | |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 64 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame^] | 65 | <h2 id="relnotes">Revisions</h2> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 66 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame^] | 67 | <p>The sections below provide notes about successive releases of |
| 68 | the Android {@sdkPlatformVersion} platform component for the Android SDK, as denoted by |
| 69 | revision number. To determine what revision(s) of the Android |
| 70 | {@sdkPlatformVersion} platforms are installed in your SDK environment, refer to |
| 71 | the "Installed Packages" listing in the Android SDK and AVD Manager.</p> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 72 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame^] | 73 | <script type="text/javascript"> |
| 74 | function toggleDiv(link) { |
| 75 | var toggleable = $(link).parent(); |
| 76 | if (toggleable.hasClass("closed")) { |
| 77 | //$(".toggleme", toggleable).slideDown("fast"); |
| 78 | toggleable.removeClass("closed"); |
| 79 | toggleable.addClass("open"); |
| 80 | $(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/triangle-opened.png")); |
| 81 | } else { |
| 82 | //$(".toggleme", toggleable).slideUp("fast"); |
| 83 | toggleable.removeClass("open"); |
| 84 | toggleable.addClass("closed"); |
| 85 | $(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/triangle-closed.png")); |
| 86 | } |
| 87 | return false; |
| 88 | } |
| 89 | </script> |
| 90 | <style> |
| 91 | .toggleable { |
| 92 | padding: .25em 1em; |
| 93 | } |
| 94 | .toggleme { |
| 95 | padding: 1em 1em 0 2em; |
| 96 | line-height:1em; |
| 97 | } |
| 98 | .toggleable a { |
| 99 | text-decoration:none; |
| 100 | } |
| 101 | .toggleable.closed .toggleme { |
| 102 | display:none; |
| 103 | } |
| 104 | #jd-content .toggle-img { |
| 105 | margin:0; |
| 106 | } |
| 107 | </style> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 108 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame^] | 109 | <div class="toggleable opened"> |
| 110 | <a href="#" onclick="return toggleDiv(this)"> |
| 111 | <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" width="9px" /> |
| 112 | Android 1.6, Revision 2</a> <em>(December 2009)</em></a> |
| 113 | <div class="toggleme"> |
| 114 | <dl> |
| 115 | <dt>Dependencies:</dt> |
| 116 | <dd> |
| 117 | <p>Requires SDK Tools r4 or higher.</p> |
| 118 | </dd> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 119 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame^] | 120 | <dt>API related:</dt> |
| 121 | <dd> |
| 122 | <ul> |
| 123 | <li>Properly exposes CDMA-related constants in <code><a href="{@docRoot}reference/android/telephony/TelephonyManager.html">android.telephony.TelephonyManager</a></code>: <code>DATA_ACTIVITY_DORMANT</code>, |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 124 | <code>PHONE_TYPE_CDMA</code>, <code>NETWORK_TYPE_CDMA</code>, |
| 125 | <code>NETWORK_TYPE_EVDO_0</code>, <code>NETWORK_TYPE_EVDO_A</code>, and |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame^] | 126 | <code>NETWORK_TYPE_1xRTT</code>.</li> |
| 127 | </ul> |
| 128 | </dd> |
| 129 | <dt>System image:</dt> |
| 130 | <dd> |
| 131 | <ul> |
| 132 | <li>Fixes bug so that Bitmap's density is now propagated through Parcelable.</li> |
| 133 | <li>Fixes NinePatchDrawable to properly scale its reported padding for compatibility mode.</li> |
| 134 | <li>Fixes TextView to properly compute styled font metrics based on the screen density.</li> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 135 | <li>Updates kernel to 2.6.29, to match kernel on commercially |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame^] | 136 | available Android-powered devices.</li> |
| 137 | </ul> |
| 138 | </dd> |
| 139 | <dt>Tools:</dt> |
| 140 | <dd> |
| 141 | <ul> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 142 | <li>Adds new Ant build system with support for Emma instrumentation projects |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame^] | 143 | (code coverage).</li> |
| 144 | <li>Fixes emulator skins to properly emulate d-pad in landscape mode.</li> |
| 145 | <li>Fixes density rendering in the layout editor in ADT.</li> |
| 146 | </ul> |
| 147 | </dd> |
| 148 | </dl> |
| 149 | </div> |
| 150 | </div> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 151 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame^] | 152 | <div class="toggleable closed"> |
| 153 | <a href="#" onclick="return toggleDiv(this)"> |
| 154 | <img src="{@docRoot}assets/images/triangle-closed.png" class="toggle-img" height="9px" width="9px" /> |
| 155 | Android 1.6, Revision 1</a> <em>(September 2009)</em></a> |
| 156 | <div class="toggleme"> |
| 157 | <dl> |
| 158 | <dt>Dependencies</dt> |
| 159 | <dd> |
| 160 | <p>Requires SDK Tools r3 or higher.</p> |
| 161 | </dd> |
| 162 | </dl> |
| 163 | </div> |
| 164 | </div> |
Dirk Dougherty | bca9f1b | 2009-11-18 23:06:16 -0800 | [diff] [blame] | 165 | |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 166 | <h2 id="apps">Built-in Applications</h2> |
| 167 | |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 168 | <p>The system image included in the downloadable platform provides these |
| 169 | built-in applications:</p> |
| 170 | |
| 171 | <table style="border:0;padding-bottom:0;margin-bottom:0;"> |
| 172 | <tr> |
| 173 | <td style="border:0;padding-bottom:0;margin-bottom:0;"> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 174 | <ul> |
| 175 | <li>Alarm Clock</li> |
| 176 | <li>Browser</li> |
| 177 | <li>Calculator</li> |
| 178 | <li>Camcorder</li> |
| 179 | <li>Camera</li> |
| 180 | <li>Contacts</li> |
| 181 | <li>Custom Locale (developer app)</li> |
| 182 | <li>Dev Tools (developer app)</li> |
| 183 | <li>Dialer</li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 184 | </ul> |
| 185 | </td> |
| 186 | <td style="border:0;padding-bottom:0;margin-bottom:0;padding-left:5em;"> |
| 187 | <ul> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 188 | <li>Email</li> |
| 189 | <li>Gallery</li> |
| 190 | <li>Gestures Builder</li> |
| 191 | <li>IME for Japanese text input</li> |
| 192 | <li>Messaging</li> |
| 193 | <li>Music</li> |
| 194 | <li>Settings</li> |
| 195 | <li>Spare Parts (developer app)</li> |
| 196 | </ul> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 197 | </td> |
| 198 | </tr> |
| 199 | </table> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 200 | |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 201 | <h2 id="locs" style="margin-top:.75em;">Locales</h2> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 202 | |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 203 | <p>The system image included in the downloadable platform provides a variety of |
| 204 | built-in locales. In some cases, region-specific strings are available for the |
| 205 | locales. In other cases, a default version of the language is used. The |
Dirk Dougherty | eeb0b25 | 2009-10-22 16:08:32 -0700 | [diff] [blame] | 206 | languages that are available in the Android {@sdkPlatformVersion} system |
| 207 | image are listed below (with <em>language</em>_<em>country/region</em> |
| 208 | locale descriptor).</p> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 209 | |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 210 | <table style="border:0;margin-bottom:0;padding-bottom:0;"> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 211 | <tr> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 212 | <td style="border:0;padding-bottom:0;margin-bottom:0;"> |
| 213 | <ul> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 214 | <li>Chinese, PRC (zh_CN)</li> |
| 215 | <li>Chinese, Taiwan (zh_TW)</li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 216 | <li>Czech (cs_CZ)</li> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 217 | <li>Dutch, Netherlands (nl_NL)</li> |
| 218 | <li>Dutch, Belgium (nl_BE)</li> |
| 219 | <li>English, US (en_US)</li> |
| 220 | <li>English, Britain (en_GB)</li> |
| 221 | <li>English, Canada (en_CA)</li> |
| 222 | <li>English, Australia (en_AU)</li> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 223 | <li>English, New Zealand (en_NZ)</li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 224 | <li>English, Singapore(en_SG)</li> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 225 | <li>French, France (fr_FR)</li> |
| 226 | <li>French, Belgium (fr_BE)</li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 227 | </ul> |
| 228 | </td> |
| 229 | <td style="border:0;padding-bottom:0;margin-bottom:0;padding-left:5em;"> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 230 | <li>French, Canada (fr_CA)</li> |
| 231 | <li>French, Switzerland (fr_CH)</li> |
| 232 | <li>German, Germany (de_DE)</li> |
| 233 | <li>German, Austria (de_AT)</li> |
| 234 | <li>German, Switzerland (de_CH)</li> |
| 235 | <li>German, Liechtenstein (de_LI)</li> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 236 | <li>Italian, Italy (it_IT)</li> |
| 237 | <li>Italian, Switzerland (it_CH)</li> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 238 | <li>Japanese (ja_JP)</li> |
| 239 | <li>Korean (ko_KR)</li> |
| 240 | <li>Polish (pl_PL)</li> |
| 241 | <li>Russian (ru_RU)</li> |
| 242 | <li>Spanish (es_ES)</li> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 243 | </td> |
| 244 | </tr> |
| 245 | </table> |
| 246 | |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 247 | <p>Localized UI strings match the locales that are accessible |
| 248 | through Settings.</p> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 249 | |
Dirk Dougherty | eeb0b25 | 2009-10-22 16:08:32 -0700 | [diff] [blame] | 250 | <h2 id="skins">Emulator Skins</h2> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 251 | |
Dirk Dougherty | 7b229ef | 2010-03-26 17:32:26 -0700 | [diff] [blame^] | 252 | <p>The downloadable platform includes a set of emulator skins that you can |
| 253 | use for modeling your application in different screen sizes and resolutions. |
| 254 | The emulator skins are: </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 255 | |
| 256 | <ul> |
| 257 | <li> |
| 258 | QVGA (240x320, low density, small screen) |
| 259 | </li> |
| 260 | <li> |
| 261 | HVGA (320x480, medium density, normal screen) |
| 262 | </li> |
| 263 | <li> |
| 264 | WVGA800 (480x800, high density, normal screen) |
| 265 | </li> |
| 266 | <li> |
| 267 | WVGA854 (480x854 high density, normal screen) |
| 268 | </li> |
| 269 | </ul> |
| 270 | |
| 271 | <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> |
| 272 | |
| 273 | |
| 274 | <h2 id="api">Framework API</h2> |
| 275 | |
| 276 | <p>The sections below provide information about the application framework API provided by the Android {@sdkPlatformVersion} platform. </p> |
| 277 | |
| 278 | |
| 279 | <h3 id="api-level">API level</h3> |
| 280 | |
| 281 | <p>The Android {@sdkPlatformVersion} platform delivers an updated version of the framework |
| 282 | API. As with previous versions, the Android {@sdkPlatformVersion} API |
| 283 | is assigned an integer identifier — <strong>{@sdkPlatformApiLevel}</strong> — that is |
| 284 | stored in the system itself. This identifier, called the "API Level", allows the |
| 285 | system to correctly determine whether an application is compatible with |
| 286 | the system, prior to installing the application. </p> |
| 287 | |
| 288 | <p>To use APIs introduced in Android {@sdkPlatformVersion} in your application, you need to |
Dirk Dougherty | eeb0b25 | 2009-10-22 16:08:32 -0700 | [diff] [blame] | 289 | set the proper value, "{@sdkPlatformApiLevel}", in the attributes of the <code><uses-sdk></code> |
| 290 | element in your application's manifest. </p> |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 291 | |
| 292 | <p>For more information about how to use API Level, see the <a |
| 293 | href="{@docRoot}guide/appendix/api-levels.html">API Levels</a> document. </p> |
| 294 | |
| 295 | <h3 id="api-changes">API changes summary</h3> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 296 | |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 297 | <h4 id="UIFramework">UI framework</h4> |
| 298 | <ul> |
| 299 | <li>New classes in {@link android.view.animation} |
| 300 | to control the behavior of animations: |
| 301 | <ul> |
| 302 | <li><code>AnticipateInterpolator</code></li> |
| 303 | <li><code>AnticipateOvershootInterpolator</code></li> |
| 304 | <li><code>BounceInterpolator</code></li> |
| 305 | <li><code>OvershootInterpolator</code></li> |
| 306 | </ul> |
| 307 | </li> |
| 308 | <li>New XML attribute <code>android:onClick</code> to specify a View's |
| 309 | <a href="/reference/android/view/View.OnClickListener.html">View.OnClickListener</a> |
| 310 | from a layout file. |
| 311 | </li> |
| 312 | <li>New support for dealing with varying screen densities. Density |
| 313 | information is associated with Bitmap and Canvas for performing the |
| 314 | correct scaling. The framework will automatically scale bitmaps and |
| 315 | nine-patches based on the density the resource was found under and the |
| 316 | density of the screen, etc. |
Dirk Dougherty | eeb0b25 | 2009-10-22 16:08:32 -0700 | [diff] [blame] | 317 | </li><p>To use APIs introduced in Android {@sdkPlatformVersion} in your application, you need to |
| 318 | set the proper value, "{@sdkPlatformApiLevel}", in the attributes of the <code><uses-sdk></code> |
| 319 | element in your application's manifest. </p> |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 320 | </ul> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 321 | |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 322 | <h4>Search framework</h4> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 323 | <ul> |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 324 | <li>Applications can now expose relevant content to users as search |
| 325 | suggestions in the Quick Search Box, a new device-wide search capability that is |
| 326 | accessible from the home screen. To support this, the search framework adds new |
| 327 | attributes to the searchable metadata file. For complete information, see the |
| 328 | {@link android.app.SearchManager SearchManager} documentation. |
| 329 | </li> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 330 | </ul> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 331 | |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 332 | <h4>Accessibility framework</h4> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 333 | <ul> |
| 334 | <li>New {@link android.view.accessibility android.accessibility} package |
| 335 | that includes classes for capturing accessibility events and forwarding them to |
| 336 | an {@link android.accessibilityservice AccessibilityService} handler. </li> |
| 337 | <li>New {@link android.accessibilityservice AccessibilityService} package |
| 338 | that lets your application track user events and provide visual, audible, or |
| 339 | haptic feedback to the user. </li> |
| 340 | </ul> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 341 | |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 342 | <h4>Gesture Input</h4> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 343 | <ul> |
| 344 | <li>New {@link android.gesture gesture} API for creating, recognizing, |
| 345 | loading, and saving gestures.</li> |
| 346 | </ul> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 347 | |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 348 | <h4>Text-to-speech</h4> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 349 | <ul> |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 350 | <li>New {@link android.speech.tts android.speech.tts} package provides |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 351 | classes for synthesizing speech from text, for immediate playback or to create a |
| 352 | sound file.</li> |
| 353 | </ul> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 354 | |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 355 | <h4>Graphics</h4> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 356 | <ul> |
| 357 | <li>Classes in {@link android.graphics android.graphics} now support scaling |
| 358 | for different screen densities.</li> |
| 359 | </ul> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 360 | |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 361 | <h4>Telephony</h4> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 362 | <ul> |
| 363 | <li>New {@link android.telephony.SmsManager SmsManager} and other classes |
| 364 | for sending and receiving SMS messages.</li> |
| 365 | </ul> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 366 | |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 367 | <h4>Utilities</h4> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 368 | <ul> |
| 369 | <li>New {@link android.util.DisplayMetrics DisplayMetrics} fields for |
| 370 | determining the density of the current device screen.</li> |
| 371 | </ul> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 372 | |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 373 | <h4 id="AndroidManifest">Android Manifest elements</h4> |
| 374 | |
| 375 | <ul> |
| 376 | <li>New <a href="{@docRoot}guide/topics/manifest/supports-screens-element.html">{@code |
| 377 | <supports-screens>}</a> element lets you specify the device screen sizes that your |
| 378 | application is designed and tested to support, where "size" is a combination |
| 379 | of resolution and density. If your application is run on a device whose screen |
| 380 | size is not specified in the <code><supports-screen></code> element, the system |
| 381 | displays the application in <em>compatibility mode</em>, which performs best-effort scaling |
| 382 | of the application UI to match the resolution and density of the screen. |
| 383 | |
| 384 | <p>The attributes available for defining an application's screen support are: |
| 385 | |
| 386 | <ul> |
| 387 | |
| 388 | <li><code>smallScreen</code>: Boolean value that indicates whether the |
| 389 | application is designed to run on devices with small screens. |
| 390 | Examples: QVGA low density; VGA high density. |
| 391 | </li> |
| 392 | <li><code>normalScreens</code>: Boolean value that indicates whether |
| 393 | the application is designed to run on devices with normal screens. |
| 394 | Examples: WQVGA low density; HVGA medium density; WVGA high density. |
| 395 | </li> |
| 396 | <li><code>largeScreens</code>: Boolean value that indicates whether |
| 397 | the application is designed to run on devices with significantly |
| 398 | larger screens, such that special care may be required on |
| 399 | the application's part to make proper use of the screen area. |
| 400 | Examples: VGA medium density; WVGA medium density. |
| 401 | </li> |
| 402 | <li><code>anyDensity</code>: Boolean value that indicates whether |
| 403 | the application can accommodate any screen density. |
| 404 | </li> |
| 405 | <li><code>resizable</code>: Boolean value that indicates whether |
| 406 | the application can expand its layout to fit slightly larger screens. |
| 407 | </li> |
| 408 | </ul> |
| 409 | </p> |
| 410 | </li> |
| 411 | |
| 412 | <li>New <a href="{@docRoot}guide/topics/manifest/uses-feature-element.html">{@code <uses-feature>}</a> |
| 413 | element lets an application specify hardware (or other) |
| 414 | features that it requires to function normally. When an application |
| 415 | specifies such features, the system allows the application to be installed only |
| 416 | on devices that offer the required features. The element supports these |
| 417 | attributes: |
| 418 | <ul> |
| 419 | <li><code>name</code>: The name of the feature required by the application. Currently accepts |
| 420 | "android.hardware.camera" and "android.hardware.camera.autofocus" values, which specify that a |
| 421 | camera and camera autofocus are required, respectively.</li> |
| 422 | <li><code>glEsVersion</code>: Indicates the minimum version of OpenGL ES required.</li> |
| 423 | </ul> |
| 424 | </li> |
| 425 | <li>New attributes for the |
| 426 | <a href="{@docRoot}guide/topics/manifest/uses-sdk-element.html">{@code <uses-sdk>}</a> element: |
| 427 | <ul> |
Dirk Dougherty | 7500f34 | 2009-12-01 16:45:14 -0800 | [diff] [blame] | 428 | <li><code>targetSdkVersion</code>: Indicates the API Level that the application is targeting. |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 429 | It is able to run on older versions (down to minSdkVersion), but was explicitly tested to |
| 430 | work with the version specified here. Specifying this version allows the platform to |
| 431 | disable compatibility code that is not required or enable newer features that are not |
| 432 | available to older applications. </li> |
Dirk Dougherty | 7500f34 | 2009-12-01 16:45:14 -0800 | [diff] [blame] | 433 | <li><code>maxSdkVersion</code>: Indicates the maximum API Level on which an application is |
| 434 | designed to run. <strong>Important:</strong> Please read the <a |
| 435 | href="{@docRoot}guide/topics/manifest/uses-sdk-element.html"><code><uses-sdk></code></a> |
| 436 | documentation before using this attribute. </li> |
Dirk Dougherty | 24db03a | 2009-09-09 13:33:45 -0700 | [diff] [blame] | 437 | </ul> |
| 438 | </li> |
| 439 | |
| 440 | </li> |
| 441 | </ul> |
| 442 | |
| 443 | <h4>New Permissions</h4> |
| 444 | |
| 445 | <ul> |
| 446 | <li>{@link android.Manifest.permission#CHANGE_WIFI_MULTICAST_STATE |
| 447 | CHANGE_WIFI_MULTICAST_STATE}: Allows applications to enter Wi-Fi |
| 448 | Multicast mode. |
| 449 | </li> |
| 450 | <li>{@link android.Manifest.permission#GLOBAL_SEARCH}: Allows the |
| 451 | global search system to access the data of a specified content provider. |
| 452 | </li> |
| 453 | <li>{@link android.Manifest.permission#INSTALL_LOCATION_PROVIDER INSTALL_LOCATION_PROVIDER}: |
| 454 | Allows an application to install a location provider into the Location Manager. |
| 455 | </li> |
| 456 | <li>{@link android.Manifest.permission#READ_HISTORY_BOOKMARKS READ_HISTORY_BOOKMARKS}: |
| 457 | Allows an application to read (but not write) the user's browsing history |
| 458 | and bookmarks. |
| 459 | </li> |
| 460 | <li>{@link android.Manifest.permission#WRITE_HISTORY_BOOKMARKS WRITE_HISTORY_BOOKMARKS}: |
| 461 | Allows an application to write (but not read) the user's browsing history |
| 462 | and bookmarks. |
| 463 | </li> |
| 464 | <li>{@link android.Manifest.permission#WRITE_EXTERNAL_STORAGE WRITE_EXTERNAL_STORAGE}: |
| 465 | Allows an application to write to external storage. Applications using API Level 3 |
| 466 | and lower will be implicitly granted this permission (and this will be visible to |
| 467 | the user); Applications using API Level 4 or higher must explicitly request this |
| 468 | permission. |
| 469 | </li> |
| 470 | </ul> |
| 471 | |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 472 | |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 473 | <h3 id="api-diff">API differences report</h3> |
Dirk Dougherty | a6602f1 | 2009-08-27 16:26:43 -0700 | [diff] [blame] | 474 | |
Dirk Dougherty | ee58d1b | 2009-10-16 15:25:15 -0700 | [diff] [blame] | 475 | <p>For a detailed view of API changes in Android {@sdkPlatformVersion} (API Level {@sdkPlatformApiLevel}), as compared to |
| 476 | the previous version, see the <a href="{@docRoot}sdk/api_diff/{@sdkPlatformApiLevel}/changes.html">API |
| 477 | Differences Report</a>.</p> |