Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 1 | page.title=Android 2.2 Platform |
| 2 | sdk.platform.version=2.2 |
| 3 | sdk.platform.apiLevel=8 |
| 4 | sdk.platform.majorMinor=minor |
| 5 | sdk.platform.deployableDate=May 2010 |
| 6 | |
| 7 | @jd:body |
| 8 | |
| 9 | <div id="qv-wrapper"> |
| 10 | <div id="qv"> |
| 11 | |
| 12 | <h2>In this document</h2> |
| 13 | <ol> |
| 14 | <li><a href="#features">Platform Highlights</a></li> |
| 15 | <li><a href="#relnotes">Revisions</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 |
| 24 | href="{@docRoot}sdk/api_diff/{@sdkPlatformApiLevel}/changes.html">API |
| 25 | differences report »</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>API Level:</em> <strong>{@sdkPlatformApiLevel}</strong></p> |
| 40 | |
| 41 | <p>Android {@sdkPlatformVersion} is a {@sdkPlatformMajorMinor} platform release |
| 42 | deployable to Android-powered handsets starting in {@sdkPlatformDeployableDate}. |
| 43 | This release includes user features, developer features, API changes, and bug |
| 44 | fixes. For information on developer features and API changes, see the |
| 45 | <a href="#api">Framework API</a> section.</p> |
| 46 | |
| 47 | <p>For developers, the Android {@sdkPlatformVersion} platform is available as a |
| 48 | downloadable component for the Android SDK. The downloadable platform includes a |
| 49 | fully compliant Android library and system image, as well as a set of emulator |
| 50 | skins, sample applications, and more. The downloadable platform |
| 51 | includes no external libraries. </p> |
| 52 | |
| 53 | <p>To get started developing or testing against the Android |
| 54 | {@sdkPlatformVersion} platform, use the Android SDK and AVD Manager tool to |
| 55 | download the platform into your SDK. For more information, |
| 56 | see <a href="{@docRoot}sdk/adding-components.html">Adding SDK |
| 57 | Components</a>. If you are new to Android, <a |
| 58 | href="{@docRoot}sdk/index.html">download the SDK Starter Package</a> |
| 59 | first.</p> |
| 60 | |
| 61 | |
| 62 | <h2 id="features">Platform Highlights</h2> |
| 63 | |
| 64 | <p>For a list of new user features and platform highlights, see the <a |
| 65 | href="http://developer.android.com/sdk/android-2.2-highlights.html">Android |
| 66 | 2.2 Platform Highlights</a> document.</p> |
| 67 | |
| 68 | <h2 id="relnotes">Revisions</h2> |
| 69 | |
| 70 | <p>The sections below provide notes about successive releases of |
| 71 | the Android {@sdkPlatformVersion} platform component for the Android SDK, as denoted by |
| 72 | revision number. To determine what revision(s) of the Android |
| 73 | {@sdkPlatformVersion} platforms are installed in your SDK environment, refer to |
| 74 | the "Installed Packages" listing in the Android SDK and AVD Manager.</p> |
| 75 | |
| 76 | <script type="text/javascript"> |
| 77 | function toggleDiv(link) { |
| 78 | var toggleable = $(link).parent(); |
| 79 | if (toggleable.hasClass("closed")) { |
| 80 | //$(".toggleme", toggleable).slideDown("fast"); |
| 81 | toggleable.removeClass("closed"); |
| 82 | toggleable.addClass("open"); |
| 83 | $(".toggle-img", toggleable).attr("title", "hide").attr("src", (toRoot + "assets/images/triangle-opened.png")); |
| 84 | } else { |
| 85 | //$(".toggleme", toggleable).slideUp("fast"); |
| 86 | toggleable.removeClass("open"); |
| 87 | toggleable.addClass("closed"); |
| 88 | $(".toggle-img", toggleable).attr("title", "show").attr("src", (toRoot + "assets/images/triangle-closed.png")); |
| 89 | } |
| 90 | return false; |
| 91 | } |
| 92 | </script> |
| 93 | <style> |
| 94 | .toggleable { |
| 95 | padding: .25em 1em; |
| 96 | } |
| 97 | .toggleme { |
| 98 | padding: 1em 1em 0 2em; |
| 99 | line-height:1em; |
| 100 | } |
| 101 | .toggleable a { |
| 102 | text-decoration:none; |
| 103 | } |
| 104 | .toggleme a { |
| 105 | text-decoration:underline; |
| 106 | } |
| 107 | .toggleable.closed .toggleme { |
| 108 | display:none; |
| 109 | } |
| 110 | #jd-content .toggle-img { |
| 111 | margin:0; |
| 112 | } |
| 113 | </style> |
| 114 | |
| 115 | <div class="toggleable opened"> |
| 116 | <a href="#" onclick="return toggleDiv(this)"> |
| 117 | <img src="{@docRoot}assets/images/triangle-opened.png" class="toggle-img" height="9px" width="9px" /> |
| 118 | Android {@sdkPlatformVersion}, Revision 1</a> <em>(May 2010)</em></a> |
| 119 | <div class="toggleme"> |
| 120 | <dl> |
| 121 | <dt>Dependencies:</dt> |
| 122 | <dd> |
| 123 | <p>Requires SDK Tools r6 or higher.</p> |
| 124 | </dd> |
| 125 | |
| 126 | <dt>Tools:</dt> |
| 127 | <dd> |
Dirk Dougherty | 877fb9a | 2010-05-13 22:05:56 -0700 | [diff] [blame] | 128 | <p>Adds support for building with Android library projects. See <a href="tools-notes.html">SDK Tools, r6</a> for information.</p> |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 129 | </dd> |
| 130 | |
| 131 | </dl> |
| 132 | </div> |
| 133 | </div> |
| 134 | |
| 135 | <h2 id="apps">Built-in Applications</h2> |
| 136 | |
| 137 | <p>The system image included in the downloadable platform provides these |
| 138 | built-in applications:</p> |
| 139 | |
| 140 | <table style="border:0;padding-bottom:0;margin-bottom:0;"> |
| 141 | <tr> |
| 142 | <td style="border:0;padding-bottom:0;margin-bottom:0;"> |
| 143 | <ul> |
| 144 | <li>Alarm Clock</li> |
| 145 | <li>Browser</li> |
| 146 | <li>Calculator</li> |
| 147 | <li>Camera</li> |
| 148 | <li>Contacts</li> |
| 149 | <li>Custom Locale (developer app)</li> |
| 150 | <li>Dev Tools (developer app)</li> |
| 151 | <li>Email</li> |
| 152 | </ul> |
| 153 | </td> |
| 154 | <td style="border:0;padding-bottom:0;margin-bottom:0;padding-left:5em;"> |
| 155 | <ul> |
| 156 | |
| 157 | <li>Gallery</li> |
| 158 | <li>IMEs for Japanese, Chinese, and Latin text input</li> |
| 159 | <li>Messaging</li> |
| 160 | <li>Music</li> |
| 161 | <li>Phone</li> |
| 162 | <li>Settings</li> |
| 163 | <li>Spare Parts (developer app)</li> |
| 164 | </ul> |
| 165 | </td> |
| 166 | </tr> |
| 167 | </table> |
| 168 | |
| 169 | |
| 170 | <h2 id="locs" style="margin-top:.75em;">Locales</h2> |
| 171 | |
| 172 | <p>The system image included in the downloadable platform provides a variety of |
| 173 | built-in locales. In some cases, region-specific strings are available for the |
| 174 | locales. In other cases, a default version of the language is used. The |
| 175 | languages that are available in the Android {@sdkPlatformVersion} system |
| 176 | image are listed below (with <em>language</em>_<em>country/region</em> locale |
| 177 | descriptor).</p> |
| 178 | |
| 179 | <table style="border:0;padding-bottom:0;margin-bottom:0;"> |
| 180 | <tr> |
| 181 | <td style="border:0;padding-bottom:0;margin-bottom:0;"> |
| 182 | <ul> |
| 183 | <li>Chinese, PRC (zh_CN)</li> |
| 184 | <li>Chinese, Taiwan (zh_TW)</li> |
| 185 | <li>Czech (cs_CZ)</li> |
| 186 | <li>Dutch, Netherlands (nl_NL)</li> |
| 187 | <li>Dutch, Belgium (nl_BE)</li> |
| 188 | <li>English, US (en_US)</li> |
| 189 | <li>English, Britain (en_GB)</li> |
| 190 | <li>English, Canada (en_CA)</li> |
| 191 | <li>English, Australia (en_AU)</li> |
| 192 | <li>English, New Zealand (en_NZ)</li> |
| 193 | <li>English, Singapore(en_SG)</li> |
| 194 | <li>French, France (fr_FR)</li> |
| 195 | <li>French, Belgium (fr_BE)</li> |
| 196 | </ul> |
| 197 | </td> |
| 198 | <td style="border:0;padding-bottom:0;margin-bottom:0;padding-left:5em;"> |
| 199 | <li>French, Canada (fr_CA)</li> |
| 200 | <li>French, Switzerland (fr_CH)</li> |
| 201 | <li>German, Germany (de_DE)</li> |
| 202 | <li>German, Austria (de_AT)</li> |
| 203 | <li>German, Switzerland (de_CH)</li> |
| 204 | <li>German, Liechtenstein (de_LI)</li> |
| 205 | <li>Italian, Italy (it_IT)</li> |
| 206 | <li>Italian, Switzerland (it_CH)</li> |
| 207 | <li>Japanese (ja_JP)</li> |
| 208 | <li>Korean (ko_KR)</li> |
| 209 | <li>Polish (pl_PL)</li> |
| 210 | <li>Russian (ru_RU)</li> |
| 211 | <li>Spanish (es_ES)</li> |
| 212 | </td> |
| 213 | </tr> |
| 214 | </table> |
| 215 | |
| 216 | <p>Localized UI strings match the locales that are accessible |
| 217 | through Settings.</p> |
| 218 | |
| 219 | <h2 id="skins">Emulator Skins</h2> |
| 220 | |
| 221 | <p>The downloadable platform includes a set of emulator skins that you can use |
| 222 | for modeling your application in different screen sizes and resolutions. The |
| 223 | emulator skins are:</p> |
| 224 | |
| 225 | <ul> |
| 226 | <li> |
| 227 | QVGA (240x320, low density, small screen) |
| 228 | </li> |
| 229 | <li> |
| 230 | WQVGA (240x400, low density, normal screen) |
| 231 | </li> |
| 232 | <li> |
| 233 | FWQVGA (240x432, low density, normal screen) |
| 234 | </li> |
| 235 | <li> |
| 236 | HVGA (320x480, medium density, normal screen) |
| 237 | </li> |
| 238 | <li> |
| 239 | WVGA800 (480x800, high density, normal screen) |
| 240 | </li> |
| 241 | <li> |
| 242 | WVGA854 (480x854 high density, normal screen) |
| 243 | </li> |
| 244 | </ul> |
| 245 | |
| 246 | <p>For more information about how to develop an application that displays |
| 247 | and functions properly on all Android-powered devices, see <a |
| 248 | href="{@docRoot}guide/practices/screens_support.html">Supporting Multiple |
| 249 | Screens</a>.</p> |
| 250 | |
| 251 | <h2 id="api">Framework API</h2> |
| 252 | |
| 253 | <p>The sections below provide information about changes made to the application |
| 254 | framework API provided by the Android {@sdkPlatformVersion} platform.</p> |
| 255 | |
| 256 | |
| 257 | <h3 id="api-level">API level</h3> |
| 258 | |
| 259 | <p>The Android {@sdkPlatformVersion} platform delivers an updated version of |
| 260 | the framework API. The Android {@sdkPlatformVersion} API |
| 261 | is assigned an integer identifier — |
| 262 | <strong>{@sdkPlatformApiLevel}</strong> — that is |
| 263 | stored in the system itself. This identifier, called the "API Level", allows the |
| 264 | system to correctly determine whether an application is compatible with |
| 265 | the system, prior to installing the application. </p> |
| 266 | |
| 267 | <p>To use APIs introduced in Android {@sdkPlatformVersion} in your |
| 268 | application, you need to set the proper value, "{@sdkPlatformApiLevel}", in the |
| 269 | <code>android:minSdkVersion</code> attributes of the <code><uses-sdk></code> |
| 270 | element in your application's manifest. </p> |
| 271 | |
| 272 | <p>For more information about how to use API Level, see the <a |
| 273 | href="{@docRoot}guide/appendix/api-levels.html">API Levels</a> document. </p> |
| 274 | |
| 275 | |
| 276 | <h3 id="api-changes">API changes summary</h3> |
| 277 | |
| 278 | <p>The sections below summarize the changes to the application framework and its APIs.</p> |
| 279 | |
| 280 | <h4 id="install-loc">App Installation on External Storage Media</h4> |
| 281 | |
| 282 | <p>The Android platform now allows applications to request installation onto the |
| 283 | device's external storage media (such as the SD card), as an alternative to |
| 284 | installation onto the device's internal memory. </p> |
| 285 | |
| 286 | <p>Application developers can express the preferred installation location for |
| 287 | their applications by means of a new attribute of <code><manifest></code> |
| 288 | in the manifest file, <a |
| 289 | href="{@docRoot}guide/topics/manifest/manifest-element.html#install"><code> |
| 290 | android:installLocation</code></a>. The attribute supports three values: |
| 291 | <code>"internalOnly"</code>, <code>"preferExternal"</code>, and |
| 292 | <code>"auto"</code>. At install time, the system checks the value of |
| 293 | <code>android:installLocation</code> and installs the application |
| 294 | <code>.apk</code> according to the preferred location, if possible. If the |
| 295 | application has requested external installation, the system installs it into a |
| 296 | private, encrypted partition in the external media. Once an application .apk is |
| 297 | installed externally, the system lets the user change the storage location of |
| 298 | the .apk and move it onto the device's internal memory if needed (and vice |
| 299 | versa), through Manage Applications in the user settings.</p> |
| 300 | |
| 301 | <p>By default, the system installs all applications onto the device's internal |
| 302 | memory, except for those that explicitly request external installation. This |
| 303 | means that the system will always install legacy applications onto internal |
| 304 | memory, since they do not have access to the |
| 305 | <code>android:installLocation</code> attribute. However, it is possible to |
| 306 | configure and compile a legacy application such that it is installed internally |
| 307 | on older versions of the platform and externally on Android 2.2 and later |
| 308 | platforms, if necessary. </p> |
| 309 | |
| 310 | <p>Note that requesting installation onto the device's external media is not |
| 311 | suitable for all applications, particularly because the external media may be |
| 312 | removable and unmounting/remounting may disrupt the user experience and system |
| 313 | settings.</p> |
| 314 | |
| 315 | <p>For more information about setting a preferred install location for your |
| 316 | application, including a discussion of what types of applications should and |
| 317 | should not request external installation, please read the <a |
| 318 | href="{@docRoot}guide/appendix/install-location.html">App Install Location</a> |
| 319 | document. </p> |
| 320 | |
| 321 | <h4 id="backup-manager">Backup manager</h4> |
| 322 | |
Scott Main | 826c9f7 | 2010-05-14 14:17:04 -0700 | [diff] [blame] | 323 | <p>The platform now provides a generalized backup service that |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 324 | applications can use to backup and restore user data, to ensure that users can |
| 325 | maintain their data when switching devices or reinstalling the application. The |
Scott Main | 826c9f7 | 2010-05-14 14:17:04 -0700 | [diff] [blame] | 326 | Backup Manager handles the work of transporting the application data to and from |
| 327 | the backup storage area in the cloud. The Backup Manager can store any type of |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 328 | data, from arbitrary data to files, and manages backup and restore operations |
Scott Main | 826c9f7 | 2010-05-14 14:17:04 -0700 | [diff] [blame] | 329 | in an atomic manner. For more information, see <a |
| 330 | href="{@docRoot}guide/topics/data/backup.html">Data Backup</a>.</p> |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 331 | |
| 332 | <h4>Graphics</h4> |
| 333 | |
| 334 | <ul> |
| 335 | <li>New OpenGL ES 2.0 APIs in {@link android.opengl.GLES20 android.opengl.GLES20}.</li> |
| 336 | <li>New {@link android.opengl.ETC1}, {@link android.opengl.ETC1Util}, and {@link android.opengl.ETC1Util.ETC1Texture} classes and utility methods for using ETC1 for texture compression.</li> |
| 337 | <li>New {@link android.graphics.ImageFormat} class.</li> |
| 338 | <li>New {@link android.graphics.YuvImage YUV image format API} to enable compression from YUV to JPEG and manipulation of YUV data.</li> |
| 339 | </ul> |
| 340 | |
| 341 | <h4>Media</h4> |
| 342 | |
| 343 | <ul> |
| 344 | <li>New APIs in {@link android.media.AudioManager android.media.AudioManager} for managing audio focus, transport control, transient loss of audio focus, ducking.</li> |
| 345 | <li>New broadcast intent for routing audio to SCO — {@link android.media.AudioManager#ACTION_SCO_AUDIO_STATE_CHANGED} with extras indicating new state.</li> |
| 346 | <li>New APIs in {@link android.media.SoundPool} to detect completion of sound-loading.</li> |
| 347 | <li>New APIs in {@link android.media.SoundPool} for auto pause and resume.</li> |
| 348 | <li>New APIs in {@link android.media.MediaRecorder} for specifying audio settings for number of channels, encoding and sampling rates, sampling rate.</li> |
| 349 | <li>New APIs for adding files to the media database, so that they are automatically scanned. See {@link android.media.MediaScannerConnection#scanFile(Context, String[], String[], OnScanCompletedListener) MediaScannerConnection.scanFile} and {@link android.media.MediaScannerConnection.OnScanCompletedListener MediaScannerConnection.OnScanCompletedListener}.</li> |
| 350 | </ul> |
| 351 | |
Dirk Dougherty | 877fb9a | 2010-05-13 22:05:56 -0700 | [diff] [blame] | 352 | <h4>Speech recognition and third-party recognition engines</h4> |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 353 | |
| 354 | <ul> |
Dirk Dougherty | 877fb9a | 2010-05-13 22:05:56 -0700 | [diff] [blame] | 355 | <li>The platform provides new speech-recognition APIs that allow applications to have a richer interaction with the available voice recognizer. For example, the APIs are sufficient to integrate voice recognition deeply into an IME.</li> |
| 356 | <li>The platform also provides a {@link android.speech.RecognitionService} base class that lets third-party developers create plug-in recognition engines. </li> |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 357 | <li>New {@link android.speech.RecognitionListener} interface to receive callbacks.</li> |
| 358 | <li>New {@link android.speech.RecognizerIntent} extras that let a requester app specify details as preferred language, minimum length in milliseconds, and so on.</li> |
| 359 | </ul> |
| 360 | |
| 361 | <h4>Camera and camcorder</h4> |
| 362 | |
| 363 | <ul> |
| 364 | <li>Changes to camera preview API to improve efficieny of preview pipeline. </li> |
| 365 | <li>New display orientation for camera (it can now work in portrait orientation).</li> |
| 366 | <li>New APIs in {@link android.hardware.Camera android.hardware.Camera} for managing zoom level.</li> |
| 367 | <li>New APIs {@link android.hardware.Camera.Parameters android.hardware.Camera.Parameters} for querying and setting device camera settings such as focal length, exposure, zoom level, view angle, and others.</li> |
| 368 | <li>New {@link android.media.ThumbnailUtils thumbnail} utility for video and image thumbnails.</li> |
| 369 | <li>New {@link android.media.CamcorderProfile} and {@link android.media.CamcorderProfile} classes enable apps to determine device hardware camera capablities.</li> |
| 370 | <li>New support in {@link android.media.ExifInterface android.media.ExifInterface} for retrieving GPS and focal length.</li> |
| 371 | </ul> |
| 372 | |
| 373 | <h4>Device policy manager</h4> |
| 374 | |
Dirk Dougherty | 877fb9a | 2010-05-13 22:05:56 -0700 | [diff] [blame] | 375 | <p>New device policy management APIs allow developers to write "device |
| 376 | administrator" applications that can control security features of the device, |
| 377 | such as the minimum password strength, data wipe, and so on. Users can select |
| 378 | the administrators that are enabled on their devices. For more information, see |
| 379 | the {@link android.app.admin android.app.admin} classees or the example |
| 380 | application code in <a |
| 381 | href="{@docRoot}resources/samples/ApiDemos/src/com/example/android/apis/app/DeviceAdminSample.html">DeviceAdminSample.java</a>.</p> |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 382 | |
| 383 | <h4>UI Framework</h4> |
| 384 | |
| 385 | <ul> |
| 386 | <li>New UI modes "car mode" and "night mode" and {@link android.app.UiModeManager} let applications adjust their application UI for specific user modes. </li> |
| 387 | <li>New {@link android.view.ScaleGestureDetector} that lets Views detect and handle transformation gestures that involve more than one pointer (multitouch) using the supplied MotionEvents. </li> |
| 388 | <li>Improvements in the way that multitouch events are reported in {@link android.view.MotionEvent} objects.</li> |
| 389 | <li>The layout attribute <code>fill_parent</code> is renamed to <code>match_parent</code>. This affects both XML and Java code (see {@link android.view.ViewGroup.LayoutParams}). Note that the platform will continue to honor uses of <code>fill_parent</code> in legacy applications. </li> |
| 390 | <li>New layout attributes {@link android.R.attr#tabStripEnabled}, {@link android.R.attr#tabStripRight}, and {@link android.R.attr#tabStripLeft} let developers customize the bottom strip of TabWidgets.</li> |
Dirk Dougherty | 877fb9a | 2010-05-13 22:05:56 -0700 | [diff] [blame] | 391 | <li>Better support for managed dialogs in Activity.</li> |
Dirk Dougherty | 0d1b081 | 2010-04-07 17:05:16 -0700 | [diff] [blame] | 392 | </ul> |
| 393 | |
| 394 | <h4>Accounts and Sync</h4> |
| 395 | |
| 396 | <ul> |
| 397 | <li>New method {@link android.content.ContentResolver#addPeriodicSync(Account, String, Bundle, long) AddPeriodicSync()} lets you schedule a periodic sync with a specific account, authority, and extras at the given frequency.</li> |
| 398 | </ul> |
| 399 | |
| 400 | <h4>New manifest elements and attributes</h4> |
| 401 | |
| 402 | <ul> |
| 403 | <li>For specifying the application's preferred install location (see <a href="#install-loc">App Installation on External Storage Media</a>, above): |
| 404 | |
| 405 | <ul> |
| 406 | <li>New <code>android:installLocation</code> attribute of the <code><manifest></code> element. Specifies the default install location defined by an application.</li> |
| 407 | </ul> |
| 408 | </li> |
| 409 | |
| 410 | <li>For managing user data backup (see <a href="#backup-manager">Backup manager</a>, above, for more information): |
| 411 | |
| 412 | <ul> |
| 413 | <li> New <code>android:backupAgent</code> attribute of the |
| 414 | <code><application></code> element. Specifies the component name of the |
| 415 | BackupAgent subclass provided by the application to handle backup/restore |
| 416 | operations, if any.</li> |
| 417 | <li> New <code>android:restoreAnyVersion</code> attribute of the |
| 418 | <code><application></code> element. Boolean value that indicates whether |
| 419 | the application is prepared to attempt a restore of any backed-up dataset, even |
| 420 | if the backup is apparently from a newer version of the application than is |
| 421 | currently installed on the device.</li> |
| 422 | </ul> |
| 423 | </li> |
| 424 | |
| 425 | <li>For managing the platform's JIT compiler: |
| 426 | |
| 427 | <ul> |
| 428 | <li>New <code>android:vmSafeMode</code> attribute of the <code><application></code> element. Boolean value that specifies whether to disable JIT compiler optimizations when running the application.</li> |
| 429 | </ul> |
| 430 | </li> |
| 431 | </ul> |
| 432 | |
| 433 | <h4>Permissions</h4> |
| 434 | |
| 435 | <ul> |
| 436 | <li><code>android.permission.BIND_DEVICE_ADMIN</code> — Any device administration broadcast receiver must require this permission, to ensure that only the system can interact with it.</li> |
| 437 | <li><code>android.permission.KILL_BACKGROUND_PROCESSES</code> — Allows an application to call {@link android.app.ActivityManager#killBackgroundProcesses(String)}. |
| 438 | <li><code>android.permission.BIND_WALLPAPER</code> — Any {@link android.service.wallpaper.WallpaperService} must require this permission, to ensure that only the system can interact with it.</li> |
| 439 | <li><code>android.permission.SET_TIME</code> — Allows an application to set the system time.</li> |
| 440 | </ul> |
| 441 | |
| 442 | <!-- |
| 443 | <h3 id="behavior-changes">Behavior changes</h3> |
| 444 | |
| 445 | What did change is that android:process and android:sharedUserId can now be a reference to a resource (instead of just a literal). |
| 446 | <h3 id="bug-fixes">Bug fixes</h3> |
| 447 | --> |
| 448 | |
| 449 | <h3 id="api-diff">API differences report</h3> |
| 450 | |
| 451 | <p>For a detailed view of all API changes in Android {@sdkPlatformVersion} (API |
| 452 | Level {@sdkPlatformApiLevel}), see the <a |
| 453 | href="{@docRoot}sdk/api_diff/{@sdkPlatformApiLevel}/changes.html">API |
| 454 | Differences Report</a>.</p> |
| 455 | |