From 0d1b0814be24f501395bf175fba8691117f782d5 Mon Sep 17 00:00:00 2001 From: Dirk Dougherty Date: Wed, 7 Apr 2010 17:05:16 -0700 Subject: Doc change: updates for new tools, platform, adt versions. Misc other fixes updates in doc files. Change-Id: I7abf541316f2796079cf646a3294db535fcaaa8a --- docs/html/guide/appendix/api-levels.jd | 1 + docs/html/guide/developing/tools/emulator.jd | 2 +- docs/html/guide/guide_toc.cs | 4 +- docs/html/guide/practices/screens_support.jd | 31 +- .../guide/practices/ui_guidelines/icon_design.jd | 12 +- .../guide/practices/ui_guidelines/icon_design_1.jd | 16 +- docs/html/resources/samples/get.jd | 6 +- docs/html/resources/samples/index.jd | 2 +- docs/html/resources/tutorials/hello-world.jd | 10 +- .../resources/tutorials/testing/activity_test.jd | 4 +- docs/html/sdk/adding-components.jd | 10 +- docs/html/sdk/android-1.5.jd | 26 ++ docs/html/sdk/android-1.6.jd | 23 + docs/html/sdk/android-2.1.jd | 26 ++ docs/html/sdk/android-2.2.jd | 472 +++++++++++++++++++++ docs/html/sdk/eclipse-adt.jd | 28 ++ docs/html/sdk/index.jd | 18 +- docs/html/sdk/sdk_toc.cs | 25 +- docs/html/sdk/tools-notes.jd | 35 ++ docs/html/sdk/win-usb.jd | 3 + 20 files changed, 686 insertions(+), 68 deletions(-) create mode 100644 docs/html/sdk/android-2.2.jd (limited to 'docs/html') diff --git a/docs/html/guide/appendix/api-levels.jd b/docs/html/guide/appendix/api-levels.jd index 398d863..c5112f6 100644 --- a/docs/html/guide/appendix/api-levels.jd +++ b/docs/html/guide/appendix/api-levels.jd @@ -83,6 +83,7 @@ Android platform.

+ diff --git a/docs/html/guide/developing/tools/emulator.jd b/docs/html/guide/developing/tools/emulator.jd index dbfc8ef..6363ab2 100644 --- a/docs/html/guide/developing/tools/emulator.jd +++ b/docs/html/guide/developing/tools/emulator.jd @@ -7,7 +7,7 @@ page.title=Android Emulator that runs on your computer. The emulator lets you prototype, develop, and test Android applications without using a physical device.

-

The Android emulator all of the hardware and software features +

The Android emulator mimics all of the hardware and software features of a typical mobile device, except that it can not receive or place actual phone calls. It provides a variety of navigation and control keys, which you can "press" using your mouse or keyboard to generate events for your application. It also diff --git a/docs/html/guide/guide_toc.cs b/docs/html/guide/guide_toc.cs index e542cd4..3d356ae 100644 --- a/docs/html/guide/guide_toc.cs +++ b/docs/html/guide/guide_toc.cs @@ -110,7 +110,7 @@

  • Application Resources -
    + new!
  • Platform VersionAPI Level
    Android 2.28
    Android 2.17
    Android 2.0.16
    Android 2.05
    @@ -236,15 +240,13 @@ configurations that the platform maps them to are shown in the table below.

    -

    Table -1. Summary of device screens supported by Android.

    +

    As shown above, the various screen configurations are arranged around a -baseline screen — HVGA (320x480) resolution on a 3.2" screen — which -is assigned a size of "normal" and a density of "medium". The HVGA screen is -used as the baseline because all applications written against Android 1.5 or -earlier are (by definition) written for the HVGA screen used on the T-Mobile G1 -and similar devices.

    +baseline screen that is assigned a size of "normal" and a density of +"medium". The HVGA screen is used as the baseline because all applications +written against Android 1.5 or earlier are (by definition) written for the HVGA +screen used on the T-Mobile G1 and similar devices.

    How Android supports multiple screens

    @@ -401,7 +408,7 @@ including those written against Android 1.5 and earlier platform versions, can display properly on most devices, especially when the device's screen is at the baseline "normal" size or larger.

    -

    However, note that applications written for the baseline HVGA screen may need +

    However, note that applications written for the baseline screen may need minor adjustments before they display properly on smaller screens such as QVGA. With the reduced screen area of small screens, there may be tradeoffs in design, content, and function that you, as the application developer, need to consider. @@ -557,7 +564,7 @@ support:

  • If you declare largeScreens="false", your application can still be installed by users of devices with large screens. When run on a device with a large screen, this attribute value causes the platform to run the -application in compatibility mode, rendering it in a baseline HVGA screen area +application in compatibility mode, rendering it in a baseline screen area (normal size, medium density) reserved on the larger screen. See Screen-Compatibility Examples for an illustration of what an application looks like when displayed in compatibility @@ -803,7 +810,7 @@ that you use in your code. The sections below provide more information.

    In some cases, you will need to express dimensions in dip and then convert them to pixels. Imagine an application in which a scroll gesture is recognized after the user's finger has moved by at least 16 pixels. On a -baseline HVGA screen, the user will have to move his finger by 16 pixels / 160 +baseline screen, the user will have to move his finger by 16 pixels / 160 dpi = 1/10th of an inch (or 2.5 mm) before the gesture is recognized. On a device with a high (240) density display, the user will move his finger by only 16 pixels / 240 dpi = 1/15th of an inch (or 1.7 mm.) The distance is much diff --git a/docs/html/guide/practices/ui_guidelines/icon_design.jd b/docs/html/guide/practices/ui_guidelines/icon_design.jd index 3f00b5c..51ccfaf 100644 --- a/docs/html/guide/practices/ui_guidelines/icon_design.jd +++ b/docs/html/guide/practices/ui_guidelines/icon_design.jd @@ -681,7 +681,7 @@ effects, which are shown below, are used to create depth.

    - + @@ -691,7 +691,7 @@ effects, which are shown below, are used to create depth.

    - +
    Color palette, whiteWhite
    r 0 | g 0 | b 0
    Used for outer glow and bevel highlight.
    White
    r 255 | g 255 | b 255
    Used for outer glow and bevel highlight.
    Color palette, blackBlack
    r 255 | g 255 | b 255
    Used for inner shadow and bevel shadow.
    Black
    r 0 | g 0 | b 0
    Used for inner shadow and bevel shadow.
    @@ -809,22 +809,22 @@ light, effects, and shadows for status bar icons."/> - + - + - + - +
    Color palette, whiteWhite
    r 0 | g 0 | b 0
    Used for details within the icons and bevel highlight.
    White
    r 255 | g 255 | b 255
    Used for details within the icons and bevel highlight.
    Color palette, grey gradientColor palette, grey gradient Grey gradient
    1:  r 169 | g 169 | b 169
    2:  r 126 | g 126 | b 126
    Used for disabled details within the icon.
    Color palette, fill gradientColor palette, fill gradient Fill gradient
    1:  1 r 105 | g 105 | b 105
    2:  r 10 | g 10 | b 10
    Used as color fill.
    Color palette, blackBlack
    r 255 | g 255 | b 255
    Used for bevel shadow.
    Black
    r 0 | g 0 | b 0
    Used for bevel shadow.
    diff --git a/docs/html/guide/practices/ui_guidelines/icon_design_1.jd b/docs/html/guide/practices/ui_guidelines/icon_design_1.jd index 039f301..1c75843 100644 --- a/docs/html/guide/practices/ui_guidelines/icon_design_1.jd +++ b/docs/html/guide/practices/ui_guidelines/icon_design_1.jd @@ -169,7 +169,7 @@ light, effects, and shadows for launcher icons."/> - + @@ -189,7 +189,7 @@ light, effects, and shadows for launcher icons."/> - +
    Color palette, whiteWhite
    r 0 | g 0 | b 0
    Used for highlights on edges.
    White
    r 255 | g 255 | b 255
    Used for highlights on edges.
    Color palette, blackBlack
    r 255 | g 255 | b 255
    Used as base color in shadows.
    Black
    r 0 | g 0 | b 0
    Used as base color in shadows.
    @@ -300,7 +300,7 @@ effects, which are shown below, are used to create depth.

    - + @@ -310,7 +310,7 @@ effects, which are shown below, are used to create depth.

    - +
    Color palette, whiteWhite
    r 0 | g 0 | b 0
    Used for outer glow and bevel highlight.
    White
    r 255 | g 255 | b 255
    Used for outer glow and bevel highlight.
    Color palette, blackBlack
    r 255 | g 255 | b 255
    Used for inner shadow and bevel shadow.
    Black
    r 0 | g 0 | b 0
    Used for inner shadow and bevel shadow.
    @@ -412,22 +412,22 @@ light, effects, and shadows for launcher icons."/> - + - + - + - +
    Color palette, whiteWhite
    r 0 | g 0 | b 0
    Used for details within the icons and bevel highlight.
    White
    r 255 | g 255 | b 255
    Used for details within the icons and bevel highlight.
    Color palette, grey gradientColor palette, grey gradient Grey gradient
    1:  r 169 | g 169 | b 169
    2:  r 126 | g 126 | b 126
    Used for disabled details within the icon.
    Color palette, fill gradientColor palette, fill gradient Fill gradient
    1:  1 r 105 | g 105 | b 105
    2:  r 10 | g 10 | b 10
    Used as color fill.
    Color palette, blackBlack
    r 255 | g 255 | b 255
    Used for bevel shadow.
    Black
    r 0 | g 0 | b 0
    Used for bevel shadow.
    diff --git a/docs/html/resources/samples/get.jd b/docs/html/resources/samples/get.jd index 898bc49..1b6d137 100644 --- a/docs/html/resources/samples/get.jd +++ b/docs/html/resources/samples/get.jd @@ -40,7 +40,7 @@ SDK Components document.

    computer in this location:

    -<sdk>/samples/<platform-version>/ +<sdk>/samples/android-<level>/

    You can easily create new Android projects with the downloaded samples, modify them @@ -49,7 +49,7 @@ if you'd like, and then run them on an emulator or device.

    For example, if you are developing in Eclipse with the ADT Plugin, you can create a project for the "API Demos" sample app by starting a new Android Project, selecting "Create project from existing source", and then browsing to -the <sdk>/samples/<platform>/ApiDemos +the <sdk>/samples/android-<level>/ApiDemos directory (the samples directory for the platform version you are using).

    @@ -57,7 +57,7 @@ using).

    sample using the android tool, by executing this command:

    -android update project -s -n API Demos -t <target_ID> -p <path>samples/<platforms>/ApiDemos/
    +android update project -s -n API Demos -t <target_ID> -p <path>samples/android-<level>/ApiDemos/
     

    Browsing the Sample Code

    diff --git a/docs/html/resources/samples/index.jd b/docs/html/resources/samples/index.jd index 4019200..9fc8e0b 100644 --- a/docs/html/resources/samples/index.jd +++ b/docs/html/resources/samples/index.jd @@ -23,7 +23,7 @@ href="{@docRoot}resources/samples/get.html">Getting the Samples.

    framework topics.
    Backup and Restore
    -
    An simple example that illustrates a few different ways for an application to +
    A simple example that illustrates a few different ways for an application to implement support for the Android data backup and restore mechanism.
    Bluetooth Chat
    diff --git a/docs/html/resources/tutorials/hello-world.jd b/docs/html/resources/tutorials/hello-world.jd index 1079fb5..7bad054 100644 --- a/docs/html/resources/tutorials/hello-world.jd +++ b/docs/html/resources/tutorials/hello-world.jd @@ -260,14 +260,16 @@ to see it running.

    -

    The Eclipse ADT will automatically create a new run configuration for your project -and the Android Emulator will automatically launch. Once the emulator is booted up, -your application will appear after a moment. You should now see something like this:

    +

    The Eclipse plugin automatically creates a new run configuration for your project +and then launches the Android Emulator. Depending on your environment, the Android +emulator might take several minutes to boot fully, so please be patient. When the +emulator is booted, the Eclipse plugin installs your application +and launches the default Activity. You should now see something like this:

    diff --git a/docs/html/resources/tutorials/testing/activity_test.jd b/docs/html/resources/tutorials/testing/activity_test.jd index ae4b6f3..87dd183 100644 --- a/docs/html/resources/tutorials/testing/activity_test.jd +++ b/docs/html/resources/tutorials/testing/activity_test.jd @@ -1208,8 +1208,8 @@ import android.widget.SpinnerAdapter; Close Eclipse with ADT.
  • - Copy the file <SDK_path>/samples/android-8/SpinnerTest/src/com/android/examples/spinner/test/SpinnerActivityTest.java - to the directory workspace/SpinnerActivityTest/src/com/android/examples/spinner/test/. + Copy the file <SDK_path>/samples/android-8/SpinnerTest/src/com/android/example/spinner/test/SpinnerActivityTest.java + to the directory workspace/SpinnerActivityTest/src/com/android/example/spinner/test/.
  • Restart Eclipse with ADT. diff --git a/docs/html/sdk/adding-components.jd b/docs/html/sdk/adding-components.jd index 90e9045..63c577e 100644 --- a/docs/html/sdk/adding-components.jd +++ b/docs/html/sdk/adding-components.jd @@ -127,10 +127,12 @@ your computer.

    New platforms are automatically saved into the -<sdk>/platforms/ directory of your SDK; -new add-ons are saved in the <sdk>/add-ons/ -directory; and new documentation is saved in the existing -<sdk>/docs/ directory (old docs are replaced).

    +<sdk>/platforms/ directory of your SDK; +new add-ons are saved in the <sdk>/add-ons/ +directory; samples are saved in the +<sdk>/samples/android-<level>/; +and new documentation is saved in the existing +<sdk>/docs/ directory (old docs are replaced).

    Updating SDK Components

    diff --git a/docs/html/sdk/android-1.5.jd b/docs/html/sdk/android-1.5.jd index b3eea77..ab74631 100644 --- a/docs/html/sdk/android-1.5.jd +++ b/docs/html/sdk/android-1.5.jd @@ -96,6 +96,9 @@ padding: .25em 1em; .toggleable a { text-decoration:none; } +.toggleme a { + text-decoration:underline; +} .toggleable.closed .toggleme { display:none; } @@ -107,6 +110,29 @@ padding: .25em 1em;
    + Android 1.5, Revision 4 (May 2010) +
    +
    +
    Dependencies:
    +
    +

    Requires SDK Tools r6 or higher.

    +
    + +
    Tools:
    +
    +
      +
    • Adds support for library projects in the Ant build system.
    • +
    • Fixes test project build in the Ant build system.
    • +
    +
    + +
    +
    +
    + +
    + + Android 1.5, Revision 3 (July 2009)
    diff --git a/docs/html/sdk/android-1.6.jd b/docs/html/sdk/android-1.6.jd index e0bac41..d7d14e9 100644 --- a/docs/html/sdk/android-1.6.jd +++ b/docs/html/sdk/android-1.6.jd @@ -98,6 +98,9 @@ padding: .25em 1em; .toggleable a { text-decoration:none; } +.toggleme a { + text-decoration:underline; +} .toggleable.closed .toggleme { display:none; } @@ -109,6 +112,26 @@ padding: .25em 1em;
    + Android 1.6, Revision 3 (May 2010) +
    +
    +
    Dependencies:
    +
    +

    Requires SDK Tools r6 or higher.

    +
    +
    Tools:
    +
    +
      +
    • Adds support for library projects in the Ant build system.
    • +
    +
    +
    +
    +
    + +
    + + Android 1.6, Revision 2 (December 2009)
    diff --git a/docs/html/sdk/android-2.1.jd b/docs/html/sdk/android-2.1.jd index dfa82b3..db9c491 100644 --- a/docs/html/sdk/android-2.1.jd +++ b/docs/html/sdk/android-2.1.jd @@ -99,6 +99,9 @@ padding: .25em 1em; .toggleable a { text-decoration:none; } +.toggleme a { + text-decoration:underline; +} .toggleable.closed .toggleme { display:none; } @@ -110,6 +113,29 @@ padding: .25em 1em;
    + Android 2.1, Revision 2 (May 2010) +
    +
    +
    Dependencies:
    +
    +

    Requires SDK Tools r6 or higher.

    +
    + +
    Tools:
    +
    +
      +
    • Adds support for library projects in the Ant build system.
    • +
    • Adds improved layout rendering in ADT’s visual layout editor.
    • +
    +
    + +
    +
    +
    + +
    + + Android 2.1, Revision 1 (January 2010)
    diff --git a/docs/html/sdk/android-2.2.jd b/docs/html/sdk/android-2.2.jd new file mode 100644 index 0000000..cfcb7a7 --- /dev/null +++ b/docs/html/sdk/android-2.2.jd @@ -0,0 +1,472 @@ +page.title=Android 2.2 Platform +sdk.platform.version=2.2 +sdk.platform.apiLevel=8 +sdk.platform.majorMinor=minor +sdk.platform.deployableDate=May 2010 + +@jd:body + + + +

    +API Level: {@sdkPlatformApiLevel}

    + +

    Android {@sdkPlatformVersion} is a {@sdkPlatformMajorMinor} platform release +deployable to Android-powered handsets starting in {@sdkPlatformDeployableDate}. +This release includes user features, developer features, API changes, and bug +fixes. For information on developer features and API changes, see the +Framework API section.

    + +

    For developers, the Android {@sdkPlatformVersion} platform is available as a +downloadable component for the Android SDK. The downloadable platform includes a +fully compliant Android library and system image, as well as a set of emulator +skins, sample applications, and more. The downloadable platform +includes no external libraries.

    + +

    To get started developing or testing against the Android +{@sdkPlatformVersion} platform, use the Android SDK and AVD Manager tool to +download the platform into your SDK. For more information, +see Adding SDK +Components. If you are new to Android, download the SDK Starter Package +first.

    + + +

    Platform Highlights

    + +

    For a list of new user features and platform highlights, see the Android +2.2 Platform Highlights document.

    + +

    Revisions

    + +

    The sections below provide notes about successive releases of +the Android {@sdkPlatformVersion} platform component for the Android SDK, as denoted by +revision number. To determine what revision(s) of the Android +{@sdkPlatformVersion} platforms are installed in your SDK environment, refer to +the "Installed Packages" listing in the Android SDK and AVD Manager.

    + + + + +
    + + + Android {@sdkPlatformVersion}, Revision 1 (May 2010) +
    +
    +
    Dependencies:
    +
    +

    Requires SDK Tools r6 or higher.

    +
    + +
    Tools:
    +
    +
      +
    • Adds support for building with Android library projects, a capability that +lets you store shared Android application code and resources in a separate +development project. You can then reference the library project from other +Android projects and, at build time, the tools compile the shared code and +resources as part of the dependent applications. More information about this +feature is available in the Developing in +Eclipse, with ADT and Developing in +Other IDEs documents.
    • + +
    +
    + +
    +
    +
    + +

    Built-in Applications

    + +

    The system image included in the downloadable platform provides these +built-in applications:

    + + + + + + +
    +
      +
    • Alarm Clock
    • +
    • Browser
    • +
    • Calculator
    • +
    • Camera
    • +
    • Contacts
    • +
    • Custom Locale (developer app)
    • +
    • Dev Tools (developer app)
    • +
    • Email
    • +
    +
    +
      + +
    • Gallery
    • +
    • IMEs for Japanese, Chinese, and Latin text input
    • +
    • Messaging
    • +
    • Music
    • +
    • Phone
    • +
    • Settings
    • +
    • Spare Parts (developer app)
    • +
    +
    + + +

    Locales

    + +

    The system image included in the downloadable platform provides a variety of +built-in locales. In some cases, region-specific strings are available for the +locales. In other cases, a default version of the language is used. The +languages that are available in the Android {@sdkPlatformVersion} system +image are listed below (with language_country/region locale +descriptor).

    + + + + + + +
    +
      +
    • Chinese, PRC (zh_CN)
    • +
    • Chinese, Taiwan (zh_TW)
    • +
    • Czech (cs_CZ)
    • +
    • Dutch, Netherlands (nl_NL)
    • +
    • Dutch, Belgium (nl_BE)
    • +
    • English, US (en_US)
    • +
    • English, Britain (en_GB)
    • +
    • English, Canada (en_CA)
    • +
    • English, Australia (en_AU)
    • +
    • English, New Zealand (en_NZ)
    • +
    • English, Singapore(en_SG)
    • +
    • French, France (fr_FR)
    • +
    • French, Belgium (fr_BE)
    • +
    +
    +
  • French, Canada (fr_CA)
  • +
  • French, Switzerland (fr_CH)
  • +
  • German, Germany (de_DE)
  • +
  • German, Austria (de_AT)
  • +
  • German, Switzerland (de_CH)
  • +
  • German, Liechtenstein (de_LI)
  • +
  • Italian, Italy (it_IT)
  • +
  • Italian, Switzerland (it_CH)
  • +
  • Japanese (ja_JP)
  • +
  • Korean (ko_KR)
  • +
  • Polish (pl_PL)
  • +
  • Russian (ru_RU)
  • +
  • Spanish (es_ES)
  • +
    + +

    Localized UI strings match the locales that are accessible +through Settings.

    + +

    Emulator Skins

    + +

    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:

    + +
      +
    • + QVGA (240x320, low density, small screen) +
    • +
    • + WQVGA (240x400, low density, normal screen) +
    • +
    • + FWQVGA (240x432, low density, normal screen) +
    • +
    • + HVGA (320x480, medium density, normal screen) +
    • +
    • + WVGA800 (480x800, high density, normal screen) +
    • +
    • + WVGA854 (480x854 high density, normal screen) +
    • +
    + +

    For more information about how to develop an application that displays +and functions properly on all Android-powered devices, see Supporting Multiple +Screens.

    + +

    Framework API

    + +

    The sections below provide information about changes made to the application +framework API provided by the Android {@sdkPlatformVersion} platform.

    + + +

    API level

    + +

    The Android {@sdkPlatformVersion} platform delivers an updated version of +the framework API. The Android {@sdkPlatformVersion} API +is assigned an integer identifier — +{@sdkPlatformApiLevel} — that is +stored in the system itself. This identifier, called the "API Level", allows the +system to correctly determine whether an application is compatible with +the system, prior to installing the application.

    + +

    To use APIs introduced in Android {@sdkPlatformVersion} in your +application, you need to set the proper value, "{@sdkPlatformApiLevel}", in the +android:minSdkVersion attributes of the <uses-sdk> +element in your application's manifest.

    + +

    For more information about how to use API Level, see the API Levels document.

    + + +

    API changes summary

    + +

    The sections below summarize the changes to the application framework and its APIs.

    + +

    App Installation on External Storage Media

    + +

    The Android platform now allows applications to request installation onto the +device's external storage media (such as the SD card), as an alternative to +installation onto the device's internal memory.

    + +

    Application developers can express the preferred installation location for +their applications by means of a new attribute of <manifest> +in the manifest file, +android:installLocation. The attribute supports three values: +"internalOnly", "preferExternal", and +"auto". At install time, the system checks the value of +android:installLocation and installs the application +.apk according to the preferred location, if possible. If the +application has requested external installation, the system installs it into a +private, encrypted partition in the external media. Once an application .apk is +installed externally, the system lets the user change the storage location of +the .apk and move it onto the device's internal memory if needed (and vice +versa), through Manage Applications in the user settings.

    + +

    By default, the system installs all applications onto the device's internal +memory, except for those that explicitly request external installation. This +means that the system will always install legacy applications onto internal +memory, since they do not have access to the +android:installLocation attribute. However, it is possible to +configure and compile a legacy application such that it is installed internally +on older versions of the platform and externally on Android 2.2 and later +platforms, if necessary.

    + +

    Note that requesting installation onto the device's external media is not +suitable for all applications, particularly because the external media may be +removable and unmounting/remounting may disrupt the user experience and system +settings.

    + +

    For more information about setting a preferred install location for your +application, including a discussion of what types of applications should and +should not request external installation, please read the App Install Location +document.

    + +

    Backup manager

    + +

    The platform now provides a generalized backup manager facility that +applications can use to backup and restore user data, to ensure that users can +maintain their data when switching devices or reinstalling the application. The +backup manager handles the work of transporting the application data to and from +the backup storage area in the cloud. The backup manager can store any type of +data, from arbitrary data to files, and manages backup and restore operations +in an atomic manner.

    + +

    Any application can use the backup manager to save and restore data. To do +so, the application instantiates a {@link android.app.backup.BackupManager} and +uses its methods to trigger a new backup or restore operation. The application +must also create a subclass of {@link android.app.backup.BackupAgent} and +implement its methods to handle calls from the backup manager to get data for +backup and provide data to restore +({@link android.app.backup.BackupAgent#onBackup(android.os.ParcelFileDescriptor, android.app.backup.BackupDataOutput, android.os.ParcelFileDescriptor) onBackup()} +and {@link android.app.backup.BackupAgent#onRestore(android.app.backup.BackupDataInput, int, android.os.ParcelFileDescriptor) onRestore()}). +A simple implementation of a BackupAgent useful for backing up preferences +and files is available by using {@link android.app.backup.BackupAgentHelper}. +For more information, see Data Backup.

    + +

    Graphics

    + +
      +
    • New OpenGL ES 2.0 APIs in {@link android.opengl.GLES20 android.opengl.GLES20}.
    • +
    • 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.
    • +
    • New {@link android.graphics.ImageFormat} class.
    • +
    • New {@link android.graphics.YuvImage YUV image format API} to enable compression from YUV to JPEG and manipulation of YUV data.
    • +
    + +

    Media

    + +
      +
    • New APIs in {@link android.media.AudioManager android.media.AudioManager} for managing audio focus, transport control, transient loss of audio focus, ducking.
    • +
    • New broadcast intent for routing audio to SCO — {@link android.media.AudioManager#ACTION_SCO_AUDIO_STATE_CHANGED} with extras indicating new state.
    • +
    • New APIs in {@link android.media.SoundPool} to detect completion of sound-loading.
    • +
    • New APIs in {@link android.media.SoundPool} for auto pause and resume.
    • +
    • New APIs in {@link android.media.MediaRecorder} for specifying audio settings for number of channels, encoding and sampling rates, sampling rate.
    • +
    • 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}.
    • +
    + +

    Third-party voice recognition engines

    + +
      +
    • The platform now provides a {@link android.speech.RecognitionService} base class that lets third-party developers create plug-in recognition engines.
    • +
    • New {@link android.speech.RecognitionListener} interface to receive callbacks.
    • +
    • New {@link android.speech.RecognizerIntent} extras that let a requester app specify details as preferred language, minimum length in milliseconds, and so on.
    • +
    + +

    Camera and camcorder

    + +
      +
    • Changes to camera preview API to improve efficieny of preview pipeline.
    • +
    • New display orientation for camera (it can now work in portrait orientation).
    • +
    • New APIs in {@link android.hardware.Camera android.hardware.Camera} for managing zoom level.
    • +
    • 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.
    • +
    • New {@link android.media.ThumbnailUtils thumbnail} utility for video and image thumbnails.
    • +
    • New {@link android.media.CamcorderProfile} and {@link android.media.CamcorderProfile} classes enable apps to determine device hardware camera capablities.
    • +
    • New support in {@link android.media.ExifInterface android.media.ExifInterface} for retrieving GPS and focal length.
    • +
    + +

    Device policy manager

    + +

    New device policy management APIs allow developers to write "device administrator" applications that can control security features of the device, such as the minimum password strength, data wipe, and so on. Users can select the administrators that are enabled on their devices. For more information, see the {@link android.app.admin android.app.admin} classees.

    + +

    UI Framework

    + +
      +
    • New UI modes "car mode" and "night mode" and {@link android.app.UiModeManager} let applications adjust their application UI for specific user modes.
    • +
    • New {@link android.view.ScaleGestureDetector} that lets Views detect and handle transformation gestures that involve more than one pointer (multitouch) using the supplied MotionEvents.
    • +
    • Improvements in the way that multitouch events are reported in {@link android.view.MotionEvent} objects.
    • +
    • The layout attribute fill_parent is renamed to match_parent. This affects both XML and Java code (see {@link android.view.ViewGroup.LayoutParams}). Note that the platform will continue to honor uses of fill_parent in legacy applications.
    • +
    • 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.
    • +
    • Better support for managed dialogs in Activity.
    • application data (and applications) +
    + +

    Accounts and Sync

    + +
      +
    • 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.
    • +
    + +

    New manifest elements and attributes

    + +
      +
    • For specifying the application's preferred install location (see App Installation on External Storage Media, above): + +
        +
      • New android:installLocation attribute of the <manifest> element. Specifies the default install location defined by an application.
      • +
      +
    • + +
    • For managing user data backup (see Backup manager, above, for more information): + +
        +
      • New android:backupAgent attribute of the +<application> element. Specifies the component name of the +BackupAgent subclass provided by the application to handle backup/restore +operations, if any.
      • +
      • New android:restoreAnyVersion attribute of the +<application> element. Boolean value that indicates whether +the application is prepared to attempt a restore of any backed-up dataset, even +if the backup is apparently from a newer version of the application than is +currently installed on the device.
      • +
      +
    • + +
    • For managing the platform's JIT compiler: + +
        +
      • New android:vmSafeMode attribute of the <application> element. Boolean value that specifies whether to disable JIT compiler optimizations when running the application.
      • +
      +
    • +
    + +

    Permissions

    + +
      +
    • android.permission.BIND_DEVICE_ADMIN — Any device administration broadcast receiver must require this permission, to ensure that only the system can interact with it.
    • +
    • android.permission.KILL_BACKGROUND_PROCESSES — Allows an application to call {@link android.app.ActivityManager#killBackgroundProcesses(String)}. +
    • android.permission.BIND_WALLPAPER — Any {@link android.service.wallpaper.WallpaperService} must require this permission, to ensure that only the system can interact with it.
    • +
    • android.permission.SET_TIME — Allows an application to set the system time.
    • +
    + + + +

    API differences report

    + +

    For a detailed view of all API changes in Android {@sdkPlatformVersion} (API +Level {@sdkPlatformApiLevel}), see the API +Differences Report.

    + diff --git a/docs/html/sdk/eclipse-adt.jd b/docs/html/sdk/eclipse-adt.jd index d3e0a10..57eac1f 100644 --- a/docs/html/sdk/eclipse-adt.jd +++ b/docs/html/sdk/eclipse-adt.jd @@ -81,6 +81,9 @@ padding: .25em 1em; .toggleable a { text-decoration:none; } +.toggleme a { + text-decoration:underline; +} .toggleable.closed .toggleme { display:none; } @@ -89,6 +92,31 @@ padding: .25em 1em; } +
    + + +ADT 0.9.6 (March 2010) +
    + +
    +
    Library projects:
    +
    +

    The ADT Plugin now supports the use of library projects during +development, a capability that lets you store shared Android application +code and resources in a separate development project. You can then reference the +library project from other Android projects and, at build time, the tools +compile the shared code and resources as part of the dependent applications. +More information about this feature is available in the Developing +in Eclipse with ADT document.

    +

    If you are not developing in Eclipse, SDK Tools r6 provides the equivalent library +project support through the Ant build system.

    +
    +
    +
    +
    +