diff --git a/docs/html/distribute/googleplay/index.html b/docs/html/distribute/googleplay/index.html deleted file mode 100644 index 46a8ce2c3b676..0000000000000 --- a/docs/html/distribute/googleplay/index.html +++ /dev/null @@ -1,10 +0,0 @@ - -
- -You should have been redirected. Please click here.
- - \ No newline at end of file diff --git a/docs/html/guide/practices/app-design/accessibility.html b/docs/html/guide/practices/app-design/accessibility.html deleted file mode 100644 index 0fa7b3213dd9b..0000000000000 --- a/docs/html/guide/practices/app-design/accessibility.html +++ /dev/null @@ -1,11 +0,0 @@ - - - -You should be redirected. Please click here.
- - \ No newline at end of file diff --git a/docs/html/guide/practices/ui_guidelines/icon_design_1.html b/docs/html/guide/practices/ui_guidelines/icon_design_1.html deleted file mode 100644 index 183facf18db81..0000000000000 --- a/docs/html/guide/practices/ui_guidelines/icon_design_1.html +++ /dev/null @@ -1,9 +0,0 @@ - - - -For the current SDK release, see the links under Current SDK Release in the side navigation.
- -This guide will help you migrate your development environment and applications -to version 1.0, release 1, of the Android SDK. Use this guide if you've been developing applications -on a different version of the Android SDK.
- -To ensure that your applications are compliant with the Android 1.0 system available -on mobile devices, you need to install the new SDK and port your existing Android -applications to the updated API. The sections below guide you through the process.
- -After unpacking the SDK, you should:
- -Some data formats have changed since the last
- SDK release, so any previously saved data in your emulator must be removed. Open a console/terminal
- and navigate to the /tools directory of your SDK. Launch the
- emulator with the -wipe-data option.
Windows: emulator -wipe-data
- Mac/Linux: ./emulator -wipe-data
If you had previously setup your
- PATH variable to point to the SDK tools directory, then you'll need to update it to
- point to the new SDK. E.g., for a .bashrc or .bash_profile file:
- export PATH=$PATH:<your_new_sdk_dir>/tools
If you develop on Eclipse and are using the ADT plugin, follow these steps to install the -plugin that's required for this version of the SDK.
- -| Eclipse 3.3 (Europa) | Eclipse 3.4 (Ganymede) |
|---|---|
-
|
-
-
-
|
-
After restart, update your Eclipse preferences to point to the SDK directory:
-All applications must now be signed before you can install them on the emulator. Both -the ADT plugin and the Ant-based build tools support this requirement by signing compiled -.apk files with a debug key. To do so, the build tools use the Keytool utility included -in the JDK to to create a keystore and a key with a known alias and password. For more -information, see "Signing and Publishing Your App" in the documentation included with the SDK. - -
To support signing, you should first make sure that Keytool is available to the SDK build -tools. In most cases, you can tell the SDK build tools how to find Keytool by making sure that -your JAVA_HOME environment variable is set and that it references a suitable JDK. Alternatively, -you can add the JDK version of Keytool to your PATH variable.
- -If you are developing on a version of Linux that originally came with Gnu Compiler for Java, -make sure that the system is using the JDK version of Keytool, rather than the gcj version. -If keytool is already in your PATH, it might be pointing to a symlink at /usr/bin/keytool. -In this case, check the symlink target to make sure that it points to the keytool in the JDK.
- -If you use Ant to build your .apk files (rather than ADT for Eclipse), you must regenerate -your build.xml file. To do that, follow these steps:
-- exec activitycreator --out <project folder> your.activity.YourActivity- -
Run in this way, activitycreator will not erase or create new Java files (or manifest files), -provided the activity and package already exists. It is important that the package and the activity -are real. The tool creates a new build.xml file, as well as a new directory called "libs" in which -to place 3rd jar files, which are now automatically handled by the Ant script.
- -If (and only if) you have written apps in an SDK released previous to -the Android 1.0 SDK, you will need to migrate your applications. After -updating your SDK, you may encounter breakages in your code, due to -framework and API changes. You'll need to update your code to match -changes in the Android APIs.
- -One way to start is to open your project in Eclipse and see where the ADT -identifies errors in your application. You can also look up -specific changes in the Android APIs in the Overview of Changes and -API Diffs Report, both available in the documentation included with the -Android 1.0 SDK package.
- -If you have additional trouble updating your code, visit the -Android Developers Group -to seek help from other Android developers.
- -If you have modified one of the ApiDemos applications and would like to migrate it -to the new SDK, note that you will need to uninstall the version of ApiDemos that comes -preinstalled in the emulator.
diff --git a/docs/html/sdk/1.0_r2/upgrading.jd b/docs/html/sdk/1.0_r2/upgrading.jd deleted file mode 100644 index 243950d671d63..0000000000000 --- a/docs/html/sdk/1.0_r2/upgrading.jd +++ /dev/null @@ -1,155 +0,0 @@ -page.title=Upgrading the SDK -sdk.version=1.0_r2 -excludeFromSuggestions=true -@jd:body - -For the current SDK release, see the links under Current SDK Release in the side navigation.
- -This guide will help you migrate your development environment and applications -to version 1.0, release 2, of the Android SDK. Use this guide if you've been developing applications -on a different version of the Android SDK.
- -To ensure that your applications are compliant with the Android 1.0 system available -on mobile devices, you need to install the new SDK and port your existing Android -applications to the updated API. The sections below guide you through the process.
- -After unpacking the SDK, you should:
- -Some data formats have changed since the last
- SDK release, so any previously saved data in your emulator must be removed. Open a console/terminal
- and navigate to the /tools directory of your SDK. Launch the
- emulator with the -wipe-data option.
Windows: emulator -wipe-data
- Mac/Linux: ./emulator -wipe-data
If you had previously setup your
- PATH variable to point to the SDK tools directory, then you'll need to update it to
- point to the new SDK. E.g., for a .bashrc or .bash_profile file:
- export PATH=$PATH:<your_new_sdk_dir>/tools
If you develop on Eclipse and are using the ADT plugin, follow these steps to install the -plugin that's required for this version of the SDK.
- -| Eclipse 3.3 (Europa) | Eclipse 3.4 (Ganymede) |
|---|---|
-
|
-
-
-
|
-
After restart, update your Eclipse preferences to point to the SDK directory:
-All applications must now be signed before you can install them on the emulator. Both -the ADT plugin and the Ant-based build tools support this requirement by signing compiled -.apk files with a debug key. To do so, the build tools use the Keytool utility included -in the JDK to to create a keystore and a key with a known alias and password. For more -information, see "Signing and Publishing Your App" in the documentation included with the SDK. - -
To support signing, you should first make sure that Keytool is available to the SDK build -tools. In most cases, you can tell the SDK build tools how to find Keytool by making sure that -your JAVA_HOME environment variable is set and that it references a suitable JDK. Alternatively, -you can add the JDK version of Keytool to your PATH variable.
- -If you are developing on a version of Linux that originally came with Gnu Compiler for Java, -make sure that the system is using the JDK version of Keytool, rather than the gcj version. -If keytool is already in your PATH, it might be pointing to a symlink at /usr/bin/keytool. -In this case, check the symlink target to make sure that it points to the keytool in the JDK.
- -If you use Ant to build your .apk files (rather than ADT for Eclipse), you must regenerate -your build.xml file. To do that, follow these steps:
-- exec activitycreator --out <project folder> your.activity.YourActivity- -
Run in this way, activitycreator will not erase or create new Java files (or manifest files), -provided the activity and package already exists. It is important that the package and the activity -are real. The tool creates a new build.xml file, as well as a new directory called "libs" in which -to place 3rd jar files, which are now automatically handled by the Ant script.
- -If (and only if) you have written apps in an SDK released previous to -the Android 1.0 SDK, you will need to migrate your applications. After -updating your SDK, you may encounter breakages in your code, due to -framework and API changes. You'll need to update your code to match -changes in the Android APIs.
- -One way to start is to open your project in Eclipse and see where the ADT -identifies errors in your application. You can also look up -specific changes in the Android APIs in the Overview of Changes and -API Diffs Report, both available in the documentation included with the -Android 1.0 SDK package.
- -If you have additional trouble updating your code, visit the -Android Developers Group -to seek help from other Android developers.
- -If you have modified one of the ApiDemos applications and would like to migrate it -to the new SDK, note that you will need to uninstall the version of ApiDemos that comes -preinstalled in the emulator.
diff --git a/docs/html/sdk/1.1_r1/upgrading.jd b/docs/html/sdk/1.1_r1/upgrading.jd deleted file mode 100644 index 840ae6b748588..0000000000000 --- a/docs/html/sdk/1.1_r1/upgrading.jd +++ /dev/null @@ -1,151 +0,0 @@ -page.title=Upgrading the SDK -sdk.version=1.1_r1 -excludeFromSuggestions=true -@jd:body - - - -This document describes how to move your development environment and existing -Android applications from an Android 1.0 SDK to the Android 1.1, Release 1 SDK. -If you are migrating applications from an earlier SDK, please read the upgrading -document available in the Android 1.0 SDK package. -
- -To ensure that your applications are compliant with the Android 1.1 system available -on mobile devices, you need to install the Android 1.1 SDK and port your existing Android -applications to it. The sections below will guide you through the process.
- -Download the SDK and unpack it into a safe location.
- -After unpacking the new SDK and saving it an appropriate location, you should:
- -Some data formats have changed since the last
- SDK release, so any previously saved data in your emulator must be removed. Open a console/terminal
- and navigate to the /tools directory of your new SDK. Launch the
- emulator with the -wipe-data option.
-
Windows: emulator -wipe-data
- Mac/Linux: ./emulator -wipe-data
If you had previously setup your
- PATH variable to point to the SDK tools directory, then you'll need to update it to
- point to the new SDK. For example, for a .bashrc or .bash_profile file:
- export PATH=$PATH:<your_new_sdk_dir>/tools
Open the default.properties file associated with your build.xml
- file (typically located in the same directory). In the default.properties
- file, update the sdk-folder property with the full path to
- the new SDK directory.
If you develop on Eclipse and are migrating from an Android 1.0 -SDK, no update of the ADT plugin is needed — skip to Update your Eclipse SDK Preferences.
- -If you are migrating from an earlier version of the SDK, you will -need to update the ADT plugin.
You may also want to upgrade your -ADT plugin when a new version becomes available for your existing version -of the SDK.
- -The steps below describe how to update the ADT plugin to the latest -version available.
- -| Eclipse 3.3 (Europa) | Eclipse 3.4 (Ganymede) |
|---|---|
-
Alternatively, -
|
-
-
|
-
The last step is to update your Eclipse preferences to point to the new SDK directory:
-If (and only if) you have written apps in an SDK released previous to -the Android 1.0 SDK, you will need to migrate your applications. After -installing the new SDK and updating the ADT Plugin (if applicable), you -may encounter breakages in your application code, due to -framework and API changes. You'll need to update your code to match the -latest APIs.
- -One way to start is to open your project in Eclipse and see where the ADT -identifies errors in your application. You can also look up -specific changes in the Android APIs in the -Android 1.1 Version -Notes document.
- - -If you have additional trouble updating your code, visit the -Android Developers Group -to seek help from other Android developers.
- -If you have modified one of the ApiDemos applications and would like to migrate it -to the new SDK, note that you will need to uninstall the version of ApiDemos that comes -preinstalled in the emulator. For more information, or if you encounter an "reinstallation" -error when running or installing ApiDemos, see the troubleshooting topic -I can't install ApiDemos -apps in my IDE because of a signing error for information about how to solve the problem.
- diff --git a/docs/html/sdk/1.5_r1/upgrading.jd b/docs/html/sdk/1.5_r1/upgrading.jd deleted file mode 100644 index 03770698997fe..0000000000000 --- a/docs/html/sdk/1.5_r1/upgrading.jd +++ /dev/null @@ -1,396 +0,0 @@ -page.title=Upgrading the SDK -sdk.version=1.5_r1 -excludeFromSuggestions=true -@jd:body - - -This document describes how to move your development environment and existing -Android applications from an Android 1.0 or 1.1 SDK to the Android 1.5 SDK. -If you are migrating applications from an SDK older than 1.0, please also read the upgrading -document available in the Android 1.0 SDK package.
- -There are several compelling reasons to upgrade, such as new SDK tools -that make developing more efficient and new APIs that allow you to expand the feature-set -of your applications. However, even if you or your applications don't require these enhancements, -it's important that you upgrade to ensure that your applications run properly on the -Android 1.5 platform.
- -The Android 1.5 platform will soon be deployable to devices around the world. -If you have already released Android applications to the public, you should -test the forward-compatibility of your applications on the latest version of the platform -as soon as possible. It's unlikely that you'll encounter breakage in your applications, but -in the interest of maintaining the best user experience, you should take no risks. -So, please install the new Android SDK and test your applications on Android 1.5.
- -For more information on new SDK features and system changes, -see the Android 1.5 Version Notes.
- - -If you haven't yet downloaded the SDK, download from here -and unpack it into a safe location.
- -Before you begin:
-If you had previously setup your PATH variable to point to the SDK tools directory,
-then you need to update it to point to the new SDK. For example, for a
-.bashrc or .bash_profile file:
export PATH=$PATH:<your_sdk_dir>/tools- -
If you don't use Eclipse for development, -skip to Update Your Projects.
- - -If you installed ADT-0.9_pre with the early look 1.5 SDK, there have been -additional changes, so please continue with this guide and update to the final ADT 0.9.
- -A new ADT plugin (version 0.9) is required for the Android 1.5 SDK. -Because the component structure has been changed since Android 1.1, -the Android 1.5 SDK does not work with ADT 0.8 (or older) and previously installed SDKs will not -work with ADT 0.9. However, the Android 1.5 SDK includes an Android 1.1 SDK image that you -can build against while using ADT 0.9.
- -For information about using different system images (such as Android 1.1) -while running this SDK, see Developing -In Eclipse, with ADT or In -Other IDEs, as appropriate for your development environment.
- -In order to upgrade your Eclipse IDE to use the new 0.9 ADT, follow the steps below -for your respective version of Eclipse.
- -You must uninstall your existing ADT plugin (0.8 or older). If you do not uninstall it, -you will get a conflict with the Android Editors when installing the new ADT. -(If you have already installed ADT-0.9_pre with the early look 1.5 SDK, you can skip this -uninstall procedure and continue to Install the 0.9 ADT plugin).
- -| Eclipse 3.3 (Europa) | Eclipse 3.4 (Ganymede) |
|---|---|
-
-
|
-
-
-
|
-
Only install the new plugin once you've completed the procedure to -Uninstall your previous ADT plugin.
- -| Eclipse 3.3 (Europa) | Eclipse 3.4 (Ganymede) |
|---|---|
-
-
|
-
-
-
|
-
If you encounter problems, ensure your ADT is fully uninstalled and then -follow the guide to -Installing the ADT Plugin -for Eclipse.
- -The last step is to update your Eclipse preferences to point to the new SDK directory:
-You will now need to update any and all Android projects that you have -developed using a previous version of the Android SDK.
- - -If you use Eclipse to develop applications, use the following procedure to -update each project:
- -The new plugin creates a gen/ folder in your project, in which it puts the
-R.java file
-and all automatically generated AIDL java files. If you get an error such as
-The type R is already defined,
-then you probably need to delete your old R.java or your old auto-generated
-AIDL Java files in the src/ folder.
-(This does not apply to your own hand-crafted parcelable AIDL java files.)
Note that, with the Android 1.5 SDK, there is a new process for running -applications in the Android Emulator. -Specifically, you must create an Android Virtual Device (AVD) before you can launch an instance -of the Emulator. Before attempting to run your applications with the new SDK, -please continue with the section below to -Migrate Your Applications.
- - -If you build your projects using the Ant tool (rather than with Eclipse), note the -following changes with the new SDK tools.
- -You must re-create your build.xml file.
If you had customized your build.xml, first make a copy of it:
-$ cd my-project -$ cp build.xml build.xml.old -- -
Now use the new android tool (located in your_sdk/tools/)
-to create a new build.xml that references
-a specific platform target:
$ android update project --path /path/to/my-project --target 1- -
The "target" corresponds to an Android platform library (including any add-ons, such as
-Google APIs) that you would like to build your project against. You can view a list of available
-targets (and their corresponding integer ID) with the command, android list targets.
-When you are initially updating your projects to the new SDK, we recommend that you select the
-first target ("1"), which uses the Android 1.1 platform library.
A gen/ folder will be created the first time you build and your R.java and
-your AIDL Java files will be generated in here. You must remove
-the old R.java and old auto-generated AIDL java files from the
-src/ folder. (This
-does not apply to your own hand-crafted parcelabe AIDL java files.)
Note: The "activitycreator" tool has been replaced -by the new "android" tool. For information on creating new projects with the android tool, -see the documentation about Developing -In Other IDEs.
- -Note that, with the Android 1.5 SDK, there is a new process for running -applications in the Android Emulator. -Specifically, you must create an Android Virtual Device (AVD) before you can launch an instance -of the Emulator. Before attempting to run your applications with the new SDK, -please continue with the section below to -Migrate Your Applications.
- - -After you have completed the process above to Update Your -Projects, you are strongly encouraged to run each of your applications in an instance -of the emulator running the Android 1.5 system image. It's possible (however, unlikely) -that you'll encounter some breakage in your application when you run your applications on -the Android 1.5 system image. Whether you believe your application will be affected by -platform changes or not, it's very important that you test the application's -forward-compatibility on Android 1.5.
- -To test forward-compatibility, simply run your existing application (as-is) on an Android -Emulator that's running the Android 1.5 system image. The following procedure will guide -you through the process to running your existing applications on an emulator. Please read -the following guide completely before you begin.
- -To test your application on an emulator running Android 1.5:
-As mentioned in the guide to Update Your Projects, - you should have selected a "build - target" of "1", which compiles your application against the Android 1.1 system image, so there - should be no new errors in your code.
-Eclipse users: follow the - Eclipse guide to - Running Your Application.
-Ant users: follow the - Ant guide to - Running Your Application -
During the procedure to Running Your Application, select a "deployment target" - for the AVD that includes the Android 1.5 platform. - If your application utilizes the Google Maps APIs (i.e., - MapView), be certain to select a target that includes the Google APIs.
-Once you complete the procedures to run your application in your respective environment, - linked above, return here.
-Chances are, your application runs just fine on the Android 1.5 platform — -new devices will be able to safely install and run your application and -current users who update their devices will be able to continue using your application as usual. -However, if something doesn't work the way you expect, then you might need to revisit -your project and make any necessary changes to your code.
- -You can check for code breakages caused by API changes by opening your project -in Eclipse, changing the "build target" to one using the Android 1.5 platform, -and see where the ADT identifies errors in your code.
- - -There have been several API additions made for this release, but there have been -very few actual API changes. Only a couple (relatively unused) elements -have been removed and a few have been deprecated, so your applications written with the -Android 1.1 system library should work just fine. However, -your application is more likely to encounter problems on Android 1.5 -if it performs any of the following:
- -Please read our blog post on Future-Proofing -Your Apps for more information on the issues mentioned above.
- -For information -about other changes made to Android 1.5, refer to the following documents:
-If you have additional trouble updating your code, visit the -Android Developers Group -to seek help from other Android developers.
diff --git a/docs/html/sdk/1.5_r2/upgrading.jd b/docs/html/sdk/1.5_r2/upgrading.jd deleted file mode 100644 index 31b23582cbec7..0000000000000 --- a/docs/html/sdk/1.5_r2/upgrading.jd +++ /dev/null @@ -1,396 +0,0 @@ -page.title=Upgrading the SDK -sdk.version=1.5_r2 -excludeFromSuggestions=true -@jd:body - - -This document describes how to move your development environment and existing -Android applications from an Android 1.0 or 1.1 SDK to the Android 1.5 SDK. -If you are migrating applications from an SDK older than 1.0, please also read the upgrading -document available in the Android 1.0 SDK package.
- -There are several compelling reasons to upgrade, such as new SDK tools -that make developing more efficient and new APIs that allow you to expand the feature-set -of your applications. However, even if you or your applications don't require these enhancements, -it's important that you upgrade to ensure that your applications run properly on the -Android 1.5 platform.
- -The Android 1.5 platform will soon be deployable to devices around the world. -If you have already released Android applications to the public, you should -test the forward-compatibility of your applications on the latest version of the platform -as soon as possible. It's unlikely that you'll encounter breakage in your applications, but -in the interest of maintaining the best user experience, you should take no risks. -So, please install the new Android SDK and test your applications on Android 1.5.
- -For more information on new SDK features and system changes, -see the Android 1.5 Version Notes.
- - -If you haven't yet downloaded the SDK, download from here -and unpack it into a safe location.
- -Before you begin:
-If you had previously setup your PATH variable to point to the SDK tools directory,
-then you need to update it to point to the new SDK. For example, for a
-.bashrc or .bash_profile file:
export PATH=$PATH:<your_sdk_dir>/tools- -
If you don't use Eclipse for development, -skip to Update Your Projects.
- - -If you installed ADT-0.9_pre with the early look 1.5 SDK, there have been -additional changes, so please continue with this guide and update to the final ADT 0.9.
- -A new ADT plugin (version 0.9) is required for the Android 1.5 SDK. -Because the component structure has been changed since Android 1.1, -the Android 1.5 SDK does not work with ADT 0.8 (or older) and previously installed SDKs will not -work with ADT 0.9. However, the Android 1.5 SDK includes an Android 1.1 SDK image that you -can build against while using ADT 0.9.
- -For information about using different system images (such as Android 1.1) -while running this SDK, see Developing -In Eclipse, with ADT or In -Other IDEs, as appropriate for your development environment.
- -In order to upgrade your Eclipse IDE to use the new 0.9 ADT, follow the steps below -for your respective version of Eclipse.
- -You must uninstall your existing ADT plugin (0.8 or older). If you do not uninstall it, -you will get a conflict with the Android Editors when installing the new ADT. -(If you have already installed ADT-0.9_pre with the early look 1.5 SDK, you can skip this -uninstall procedure and continue to Install the 0.9 ADT plugin).
- -| Eclipse 3.3 (Europa) | Eclipse 3.4 (Ganymede) |
|---|---|
-
-
|
-
-
-
|
-
Only install the new plugin once you've completed the procedure to -Uninstall your previous ADT plugin.
- -| Eclipse 3.3 (Europa) | Eclipse 3.4 (Ganymede) |
|---|---|
-
-
|
-
-
-
|
-
If you encounter problems, ensure your ADT is fully uninstalled and then -follow the guide to -Installing the ADT Plugin -for Eclipse.
- -The last step is to update your Eclipse preferences to point to the new SDK directory:
-You will now need to update any and all Android projects that you have -developed using a previous version of the Android SDK.
- - -If you use Eclipse to develop applications, use the following procedure to -update each project:
- -The new plugin creates a gen/ folder in your project, in which it puts the
-R.java file
-and all automatically generated AIDL java files. If you get an error such as
-The type R is already defined,
-then you probably need to delete your old R.java or your old auto-generated
-AIDL Java files in the src/ folder.
-(This does not apply to your own hand-crafted parcelable AIDL java files.)
Note that, with the Android 1.5 SDK, there is a new process for running -applications in the Android Emulator. -Specifically, you must create an Android Virtual Device (AVD) before you can launch an instance -of the Emulator. Before attempting to run your applications with the new SDK, -please continue with the section below to -Migrate Your Applications.
- - -If you build your projects using the Ant tool (rather than with Eclipse), note the -following changes with the new SDK tools.
- -You must re-create your build.xml file.
If you had customized your build.xml, first make a copy of it:
-$ cd my-project -$ cp build.xml build.xml.old -- -
Now use the new android tool (located in your_sdk/tools/)
-to create a new build.xml that references
-a specific platform target:
$ android update project --path /path/to/my-project --target 1- -
The "target" corresponds to an Android platform library (including any add-ons, such as
-Google APIs) that you would like to build your project against. You can view a list of available
-targets (and their corresponding integer ID) with the command, android list targets.
-When you are initially updating your projects to the new SDK, we recommend that you select the
-first target ("1"), which uses the Android 1.1 platform library.
A gen/ folder will be created the first time you build and your R.java and
-your AIDL Java files will be generated in here. You must remove
-the old R.java and old auto-generated AIDL java files from the
-src/ folder. (This
-does not apply to your own hand-crafted parcelabe AIDL java files.)
Note: The "activitycreator" tool has been replaced -by the new "android" tool. For information on creating new projects with the android tool, -see the documentation about Developing -In Other IDEs.
- -Note that, with the Android 1.5 SDK, there is a new process for running -applications in the Android Emulator. -Specifically, you must create an Android Virtual Device (AVD) before you can launch an instance -of the Emulator. Before attempting to run your applications with the new SDK, -please continue with the section below to -Migrate Your Applications.
- - -After you have completed the process above to Update Your -Projects, you are strongly encouraged to run each of your applications in an instance -of the emulator running the Android 1.5 system image. It's possible (however, unlikely) -that you'll encounter some breakage in your application when you run your applications on -the Android 1.5 system image. Whether you believe your application will be affected by -platform changes or not, it's very important that you test the application's -forward-compatibility on Android 1.5.
- -To test forward-compatibility, simply run your existing application (as-is) on an Android -Emulator that's running the Android 1.5 system image. The following procedure will guide -you through the process to running your existing applications on an emulator. Please read -the following guide completely before you begin.
- -To test your application on an emulator running Android 1.5:
-As mentioned in the guide to Update Your Projects, - you should have selected a "build - target" of "1", which compiles your application against the Android 1.1 system image, so there - should be no new errors in your code.
-Eclipse users: follow the - Eclipse guide to - Running Your Application.
-Ant users: follow the - Ant guide to - Running Your Application -
During the procedure to Running Your Application, select a "deployment target" - for the AVD that includes the Android 1.5 platform. - If your application utilizes the Google Maps APIs (i.e., - MapView), be certain to select a target that includes the Google APIs.
-Once you complete the procedures to run your application in your respective environment, - linked above, return here.
-Chances are, your application runs just fine on the Android 1.5 platform — -new devices will be able to safely install and run your application and -current users who update their devices will be able to continue using your application as usual. -However, if something doesn't work the way you expect, then you might need to revisit -your project and make any necessary changes to your code.
- -You can check for code breakages caused by API changes by opening your project -in Eclipse, changing the "build target" to one using the Android 1.5 platform, -and see where the ADT identifies errors in your code.
- - -There have been several API additions made for this release, but there have been -very few actual API changes. Only a couple (relatively unused) elements -have been removed and a few have been deprecated, so your applications written with the -Android 1.1 system library should work just fine. However, -your application is more likely to encounter problems on Android 1.5 -if it performs any of the following:
- -Please read our blog post on Future-Proofing -Your Apps for more information on the issues mentioned above.
- -For information -about other changes made to Android 1.5, refer to the following documents:
-If you have additional trouble updating your code, visit the -Android Developers Group -to seek help from other Android developers.
diff --git a/docs/html/sdk/1.5_r3/upgrading.jd b/docs/html/sdk/1.5_r3/upgrading.jd deleted file mode 100644 index 62b9a787bcddb..0000000000000 --- a/docs/html/sdk/1.5_r3/upgrading.jd +++ /dev/null @@ -1,398 +0,0 @@ -page.title=Upgrading the SDK -sdk.version=1.5 -sdk.rel.id=3 -excludeFromSuggestions=true - -@jd:body - - -This document describes how to move your development environment and existing -Android applications from an Android 1.0 or 1.1 SDK to the Android 1.5 SDK. -If you are migrating applications from an SDK older than 1.0, please also read the upgrading -document available in the Android 1.0 SDK package.
- -There are several compelling reasons to upgrade, such as new SDK tools -that make developing more efficient and new APIs that allow you to expand the feature-set -of your applications. However, even if you or your applications don't require these enhancements, -it's important that you upgrade to ensure that your applications run properly on the -Android 1.5 platform.
- -The Android 1.5 platform will soon be deployable to devices around the world. -If you have already released Android applications to the public, you should -test the forward-compatibility of your applications on the latest version of the platform -as soon as possible. It's unlikely that you'll encounter breakage in your applications, but -in the interest of maintaining the best user experience, you should take no risks. -So, please install the new Android SDK and test your applications on Android 1.5.
- -For more information on new SDK features and system changes, -see the Android 1.5 Version Notes.
- - -If you haven't yet downloaded the SDK, download from here -and unpack it into a safe location.
- -Before you begin:
-If you had previously setup your PATH variable to point to the SDK tools directory,
-then you need to update it to point to the new SDK. For example, for a
-.bashrc or .bash_profile file:
export PATH=$PATH:<your_sdk_dir>/tools- -
If you don't use Eclipse for development, -skip to Update Your Projects.
- - -If you installed ADT-0.9_pre with the early look 1.5 SDK, there have been -additional changes, so please continue with this guide and update to the final ADT 0.9.
- -A new ADT plugin (version 0.9) is required for the Android 1.5 SDK. -Because the component structure has been changed since Android 1.1, -the Android 1.5 SDK does not work with ADT 0.8 (or older) and previously installed SDKs will not -work with ADT 0.9. However, the Android 1.5 SDK includes an Android 1.1 SDK image that you -can build against while using ADT 0.9.
- -For information about using different system images (such as Android 1.1) -while running this SDK, see Developing -In Eclipse, with ADT or In -Other IDEs, as appropriate for your development environment.
- -In order to upgrade your Eclipse IDE to use the new 0.9 ADT, follow the steps below -for your respective version of Eclipse.
- -You must uninstall your existing ADT plugin (0.8 or older). If you do not uninstall it, -you will get a conflict with the Android Editors when installing the new ADT. -(If you have already installed ADT-0.9_pre with the early look 1.5 SDK, you can skip this -uninstall procedure and continue to Install the 0.9 ADT plugin).
- -| Eclipse 3.3 (Europa) | Eclipse 3.4 (Ganymede) |
|---|---|
-
-
|
-
-
-
|
-
Only install the new plugin once you've completed the procedure to -Uninstall your previous ADT plugin.
- -| Eclipse 3.3 (Europa) | Eclipse 3.4 (Ganymede) |
|---|---|
-
-
|
-
-
-
|
-
If you encounter problems, ensure your ADT is fully uninstalled and then -follow the guide to -Installing the ADT Plugin -for Eclipse.
- -The last step is to update your Eclipse preferences to point to the new SDK directory:
-You will now need to update any and all Android projects that you have -developed using a previous version of the Android SDK.
- - -If you use Eclipse to develop applications, use the following procedure to -update each project:
- -The new plugin creates a gen/ folder in your project, in which it puts the
-R.java file
-and all automatically generated AIDL java files. If you get an error such as
-The type R is already defined,
-then you probably need to delete your old R.java or your old auto-generated
-AIDL Java files in the src/ folder.
-(This does not apply to your own hand-crafted parcelable AIDL java files.)
Note that, with the Android 1.5 SDK, there is a new process for running -applications in the Android Emulator. -Specifically, you must create an Android Virtual Device (AVD) before you can launch an instance -of the Emulator. Before attempting to run your applications with the new SDK, -please continue with the section below to -Migrate Your Applications.
- - -If you build your projects using the Ant tool (rather than with Eclipse), note the -following changes with the new SDK tools.
- -You must re-create your build.xml file.
If you had customized your build.xml, first make a copy of it:
-$ cd my-project -$ cp build.xml build.xml.old -- -
Now use the new android tool (located in your_sdk/tools/)
-to create a new build.xml that references
-a specific platform target:
$ android update project --path /path/to/my-project --target 1- -
The "target" corresponds to an Android platform library (including any add-ons, such as
-Google APIs) that you would like to build your project against. You can view a list of available
-targets (and their corresponding integer ID) with the command, android list targets.
-When you are initially updating your projects to the new SDK, we recommend that you select the
-first target ("1"), which uses the Android 1.1 platform library.
A gen/ folder will be created the first time you build and your R.java and
-your AIDL Java files will be generated in here. You must remove
-the old R.java and old auto-generated AIDL java files from the
-src/ folder. (This
-does not apply to your own hand-crafted parcelable AIDL java files.)
Note: The "activitycreator" tool has been replaced -by the new "android" tool. For information on creating new projects with the android tool, -see the documentation about Developing -In Other IDEs.
- -Note that, with the Android 1.5 SDK, there is a new process for running -applications in the Android Emulator. -Specifically, you must create an Android Virtual Device (AVD) before you can launch an instance -of the Emulator. Before attempting to run your applications with the new SDK, -please continue with the section below to -Migrate Your Applications.
- - -After you have completed the process above to Update Your -Projects, you are strongly encouraged to run each of your applications in an instance -of the emulator running the Android 1.5 system image. It's possible (however, unlikely) -that you'll encounter some breakage in your application when you run your applications on -the Android 1.5 system image. Whether you believe your application will be affected by -platform changes or not, it's very important that you test the application's -forward-compatibility on Android 1.5.
- -To test forward-compatibility, simply run your existing application (as-is) on an Android -Emulator that's running the Android 1.5 system image. The following procedure will guide -you through the process to running your existing applications on an emulator. Please read -the following guide completely before you begin.
- -To test your application on an emulator running Android 1.5:
-As mentioned in the guide to Update Your Projects, - you should have selected a "build - target" of "1", which compiles your application against the Android 1.1 system image, so there - should be no new errors in your code.
-Eclipse users: follow the - Eclipse guide to - Running Your Application.
-Ant users: follow the - Ant guide to - Running Your Application -
During the procedure to Running Your Application, select a "deployment target" - for the AVD that includes the Android 1.5 platform. - If your application utilizes the Google Maps APIs (i.e., - MapView), be certain to select a target that includes the Google APIs.
-Once you complete the procedures to run your application in your respective environment, - linked above, return here.
-Chances are, your application runs just fine on the Android 1.5 platform — -new devices will be able to safely install and run your application and -current users who update their devices will be able to continue using your application as usual. -However, if something doesn't work the way you expect, then you might need to revisit -your project and make any necessary changes to your code.
- -You can check for code breakages caused by API changes by opening your project -in Eclipse, changing the "build target" to one using the Android 1.5 platform, -and see where the ADT identifies errors in your code.
- - -There have been several API additions made for this release, but there have been -very few actual API changes. Only a couple (relatively unused) elements -have been removed and a few have been deprecated, so your applications written with the -Android 1.1 system library should work just fine. However, -your application is more likely to encounter problems on Android 1.5 -if it performs any of the following:
- -Please read our blog post on Future-Proofing -Your Apps for more information on the issues mentioned above.
- -For information -about other changes made to Android 1.5, refer to the following documents:
-If you have additional trouble updating your code, visit the -Android Developers Group -to seek help from other Android developers.
diff --git a/docs/html/sdk/1.6_r1/upgrading.jd b/docs/html/sdk/1.6_r1/upgrading.jd deleted file mode 100644 index e6dded0f420a2..0000000000000 --- a/docs/html/sdk/1.6_r1/upgrading.jd +++ /dev/null @@ -1,386 +0,0 @@ -page.title=Upgrading the SDK -sdk.version=1.6 -excludeFromSuggestions=true -@jd:body - - -android tool without options. This document describes how to move your development environment and existing -Android applications from an Android 1.5 SDK to the Android 1.6 SDK. If you are -migrating applications from an SDK older than 1.5, please also read the -upgrading document available in the Android 1.5 SDK package.
- -There are several compelling reasons to upgrade, such as new SDK tools that -make developing more efficient and new APIs that allow you to expand the -feature-set of your applications. However, even if you or your applications -don't require these enhancements, it's important that you upgrade to ensure that -your applications run properly on the upcoming Android platform.
- -The Android 1.6 platform will soon be deployable to devices around the world. -If you have already released Android applications to the public, you should test -the forward-compatibility of your applications on the latest version of the -platform as soon as possible. It's unlikely that you'll encounter problems in -your applications, but in the interest of maintaining the best user experience, -you should take no risks. So, please install the new Android SDK and test your -applications on the new platform.
- - -For more information on new SDK features and system changes, -see the Android 1.6 Version Notes.
- - -If you haven't yet downloaded the SDK, download it from -here and unpack it into a safe location.
- -If you had previously setup your PATH variable to point to the SDK
-tools directory, then you need to update it to point to the new SDK. For example, for
-a .bashrc or .bash_profile file:
export PATH=$PATH:<your_sdk_dir>/tools- - -
If you don't use the Eclipse IDE for development, -skip to Run Your Applications.
- -A new version of the ADT Plugin, ADT 0.9.3, is available in conjunction with -this SDK release. To use the SDK, you must upgrade your ADT Plugin to version -0.9.3. With ADT 0.9.3, you can still compile your existing applications against -multiple platform versions, such as Android 1.5, Android 1.1, and so on. However, -ADT 0.9.3 is not compatible with previous versions of the SDK and its tools, so -make sure that you upgrade both your SDK and the ADT Plugin.
- -The upgrade steps for ADT are described below. For information about new features in ADT, see the Release Notes document. - -If you're currently using a version of ADT older than version 0.9, -then you must uninstall ADT before you proceed (read how to Uninstall your previous -ADT plugin). If you currently have version 0.9 or 0.9.1, then you don't need -to uninstall and can continue with the procedure below.
- -| Eclipse 3.4 (Ganymede) | Eclipse 3.5 (Galileo) |
|---|---|
-
-
|
-
-
-
|
-
If you encounter problems with this update procedure, try performing a fresh -installation. Fully remove your existing ADT Plugin as described in Uninstall your previous -ADT plugin and then follow the guide to Installing the ADT Plugin for -Eclipse.
- -The last step is to update your Eclipse preferences to point to the new -SDK directory:
-Now that you have installed the Android 1.6 SDK, we encourage you run each of -your existing applications on the Android 1.6 system image that is included in -the SDK, to ensure that it functions properly on the new platform. -Testing forward-compatibility in this way is especially important for -applications that you may have already published and that may be installed on -devices that will upgrade to the new platform.
- -In most cases, your applications will function properly when run on the new -version of the platform. However, it is possible that you will encounter -unexpected behavior, because of changes in the API or underlying platform. If -you do find problems, you can use the SDK tools to compile and publish an update -to the applications, which users can then download. - -
To test forward-compatibility, simply run your application, as-is, on an -instance of the Android Emulator that uses an AVD targeted to the "Android 1.6" -system image. Here are the steps:
- -Note that, for the purposes of forward-compatibility testing, you should not -change how your application is compiled. That is, you should continue to compile -the application against the same version of the Android library as before. The -only change needed is to the AVD, which controls the version of the Android -system image (run-time environment) on which the application is run. - -
For more information on creating an AVD and launching your application, see -Running Your -Applications (Eclipse) or Running -Your Applications (other IDEs), depending on your development -environment.
- -The new version of the Android platform includes several new APIs, but -very few actual changes to existing APIs. This means that, in most -cases, your applications written with earlier versions of the Android library -should run properly on the Android 1.6 platform.
- -However, here are some areas to pay attention to as you test forward-compatibility:
- -<uses-configuration>.
-element in the application's manifest file. Also see the <uses-feature>
-manifest element, which lets your application declare a requirement for
-specific features, such as an OpenGL ES version or a camera that has
-autofocus capability.
-<uses-configuration>.
-element in the application's manifest file. When testing forward-compatibility, try running your application in various -AVDs that emulate different hardware configurations. For example, you can create -an AVD that does not offer a physical keyboard or one that uses a dpad instead -of a trackball. Running your application in different emulated hardware -configurations will give you an idea of where its dependencies are and help you -identify problems.
- - -When testing forward-compatibility, try running your application in various
-AVDs that emulate different screen resolutions and densities. Also note that,
-starting with Android 1.6, the platform provides a Compatibility Mode that
-automatically scales the UI of applications if they do not explicitly indicate
-support for the current screen in the
-<supports-screen>
-element in their manifest files. As part of testing, you should evaluate how
-your application is displayed in Compatibility Mode on different screens.
If you want to use any of the new Android 1.6 APIs in your existing -applications, you must first migrate the applications to the new Android -platform version. Generally, migrating an application includes:
- -Additionally, to run your application in the emulator, you need to -create an AVD that uses the Android 1.6 system image.
- -Note: You only need migrate your application as -described in this section if the application will actually use APIs -introduced in the Android 1.6 platform (which are not available on -devices running older versions of the Android platform). If your application -does not use any new APIs, you can compile and run it without modification and -not migration is necessary.
- -If your application is using APIs introduced in Android 1.6, you must -reference that dependency in the application's manifest file so that it can be -deployed to devices running the Android 1.6 platform.
- -Open the manifest file and locate the minSdkVersion attribute
-in the <uses-sdk> manifest element. Set the value of
-minSdkVersion to "4" (the API Level
-identifier corresponding to Android 1.6). Here's an example:
-<manifest> - ... - <uses-sdk android:minSdkVersion="4" /> - ... -</manifest> -- -
Once you've changed the minSdkVersion value in your
-application's manifest, you need to set the application's project properties so
-that the application will be compiled against the Android 1.6 library. To do so,
-follow the steps below for your respective development environment.
Use the android tool (located in
-your_sdk/tools/) to create a new build.xml
-that references the new platform target. To see a list of available targets,
-execute:
android list targets- -
Select the target id that corresponds to the "Android 1.6" platform
-and pass it with the --target parameter when updating your project.
-For example:
android update project --path /path/to/my-project --target 2- -
If your application uses the Google Maps APIs (i.e., MapView), be certain to -select a Google APIs target.
- -Finally, you need to set up a new AVD that uses the Android 1.6 platform, so that -you can run your application in the emulator. - -
To set up the new AVD, use the android tool, available in the
-tools/ directory of the SDK. You can run the AVD manager by simply
-changing to the tools/ directory and entering android
-at the command line. Click "New" to create the AVD and set its properties.
When creating the AVD, make sure to select a target of "Android 1.6 - API -Level 4". If your application uses the Google Maps APIs (MapView), select the -target "Google APIs (Google Inc.) - API Level 4".
- -For more information about running your application in an AVD, see Running Your -Application (Eclipse) or Running Your -Application (other IDEs).
- -For general information about AVDs, see the Android Virtual -Devices document.
- - - -If you have trouble migrating to the new version of the SDK, visit the -Android Developers Group -to seek help from other Android developers.
-For this version of the SDK — Android 1.0 SDK, Release 1 — the compatible version of the Android Development Tools (ADT) Plugin for Eclipse is 0.8.0. If you are using a previous version of ADT, you should update to the latest version for use with this SDK. For information about how to update your ADT plugin, see Upgrading the SDK.
+For this version of the SDK — Android 1.0 SDK, Release 1 — the compatible version of the Android Development Tools (ADT) Plugin for Eclipse is 0.8.0. If you are using a previous version of ADT, you should update to the latest version for use with this SDK.
If you've been developing an application using a previous SDK version and you want the application to run on Android-powered mobile devices, you must port the application to the Android 1.0 SDK. Please see Upgrading the SDK for detailed instructions on how to make the transition to this release. Be sure to wipe application user data (emulator option -wipe-data) when running your application on the Android 1.0 SDK emulator.
If you've been developing an application using a previous SDK version and you want the application to run on Android-powered mobile devices, you must port the application to the Android 1.0 SDK. Be sure to wipe application user data (emulator option -wipe-data) when running your application on the Android 1.0 SDK emulator.
You should be redirected. Please click here.
- - \ No newline at end of file diff --git a/docs/html/tools/debug-tasks.html b/docs/html/tools/debug-tasks.html deleted file mode 100644 index 2a5bc511242e3..0000000000000 --- a/docs/html/tools/debug-tasks.html +++ /dev/null @@ -1,10 +0,0 @@ - - - -You should be redirected. Please click here.
- - \ No newline at end of file diff --git a/docs/html/tools/eclipse-adt.html b/docs/html/tools/eclipse-adt.html deleted file mode 100644 index 0d59d49897350..0000000000000 --- a/docs/html/tools/eclipse-adt.html +++ /dev/null @@ -1,10 +0,0 @@ - - - -You should be redirected. Please click here.
- - \ No newline at end of file diff --git a/docs/html/tools/help/aapt.html b/docs/html/tools/help/aapt.html deleted file mode 100644 index ebd375d312f0c..0000000000000 --- a/docs/html/tools/help/aapt.html +++ /dev/null @@ -1,10 +0,0 @@ - - - -You should be redirected. Please click here.
- - \ No newline at end of file diff --git a/docs/html/tools/other-ide.html b/docs/html/tools/other-ide.html deleted file mode 100644 index 2bfe876570a2b..0000000000000 --- a/docs/html/tools/other-ide.html +++ /dev/null @@ -1,10 +0,0 @@ - - - -You should be redirected. Please click here.
- - \ No newline at end of file diff --git a/docs/html/tools/othertools.html b/docs/html/tools/othertools.html deleted file mode 100644 index ed45ccdf8103a..0000000000000 --- a/docs/html/tools/othertools.html +++ /dev/null @@ -1,10 +0,0 @@ - - - -You should be redirected. Please click here.
- - \ No newline at end of file diff --git a/docs/html/tools/sdk/OLD_RELEASENOTES.jd b/docs/html/tools/sdk/OLD_RELEASENOTES.jd deleted file mode 100644 index b7fd12f7cc5b5..0000000000000 --- a/docs/html/tools/sdk/OLD_RELEASENOTES.jd +++ /dev/null @@ -1,528 +0,0 @@ -page.title=Release Notes for Older SDK Versions -excludeFromSuggestions=true -@jd:body - -Note: These are the release notes for the "early-look" SDK versions, released - before the full Android 1.0 release in September 2008. - Release notes for the Android 1.0 and later SDK versions are provided in the main - Release Notes document.
-This beta SDK release contains a large number of bug fixes and improvements from the early-look SDKs. -The sections below describe the highlights of the release. - -
Behavior and System Changes
-- - Significant API Changes -
-- - Maps & Location -
-- ADT Plugin for Eclipse
-The ADT Plugin that accompanies this SDK includes a preview of the Graphical Layout Editor. Files located in <project>/res/layout[-qualifiers]/ will be opened with the new layout editor. This is very much a work in progress, and provided here for preview purpose. The editor feature is subject to change. -
-Known issues/limitations for Graphical Layout Editor include:
- -Other ADT features/notes include:
-Ant Build Tools
- -Emulator
- --adb-port command is deprecated. Please do not use it, as it will be removed soon and you cannot use both -port and -adb-port at the same time.-scale <fraction> option allows you to scale the emulator window. -no-boot-anim option tells the emulator to disable the boot animation. On slower systems, this can significantly reduce the time to boot the system in the emulator.- Other Development Tools -
- -The SDK includes several new development tools, such as
-- Application Signing -
-- Sample Code -
-- - Removed Functionality -
-- - Miscellaneous -
-- The list below is not comprehensive, but instead highlights the most interesting fixes since the last SDK release. -
-m5-rc15 does not introduce any new features.
- -Unless otherwise noted, Known Issues from m5-rc14 also apply to m5-rc15.
- - - - - -In addition to changes in the Android APIs, m5-rc14 also introduces changes to the Android Developer Tools:
- -AndroidManifest.xml
- declaring a package matching the name of the process.
- To force this connection from your code, use Debug.waitForDebugger(). Activities declaring that they require their own process through the
- "process" attribute with a value like ":someProcess" will be
- recognized and a debugger will be connected accordingly.
- This should make it easier to debug intent receivers, services,
- providers, and other activities not launched from the standard app
- launcher.The following Known Issues from m3-rc20 have been resolved:
-The following are known issues in m5-rc14:
- -Criteria object passed to {@link android.location.LocationManager#getBestProvider getBestProvider()} will result in a value not being returned.Unless otherwise noted, Known Issues from m3-rc20a also apply to m5-rc14.
- - - - - -Version m3-rc37a and ADT 0.3.3 were released on December 14, 2007.
- --data option when starting secondary emulators, to allow those instances to save their data across sessions. Also, DDMS does not yet support debugging on multiple emulators yet. adb -version now returns a version number.
Audio on Windows is fixed and is no longer 'choppy'.
- -ADT plugin now uses a custom java editor for R.java/Manifest.java, to make those files non-editable. This is to replace the current locking mechanism which causes issues on Mac OS (preventing projects from being deleted). Note that your project must recompile at least once for the lock to be removed from the files.
- --
adb shell may fail to connect when used the first time.
--useaudio on some environments.
-Unless otherwise noted, Known Issues from m3-rc22a also apply to m3-rc37a.
- - - - - -Version m3-rc22a and ADT 0.3.1 were released on November 16, 2007.
- -The New Android Project wizard provided by ADT 0.3.1 now properly displays error messages when used with Eclipse 3.2 on Windows.
- -The AndroidManifest.xml files generated by ADT 0.3.1 now include the XML element required for displaying the associated app in the "Applications" menu. If you have applications created with ADT 0.3.0, simply ensure that your AndroidManifest.xml file contains the following highlighted line:
-... - <intent-filter> - <action android:value="android.intent.action.MAIN" /> - <category android:value="android.intent.category.LAUNCHER" /> - </intent-filter> -... -- -
ADT 0.3.1 is now compatible with Eclipse 3.4.
- -Fixes a NullPointerException that is thrown in certain situations with the DDMS perspective in Eclipse.
- -Address a keyboard lock-up issue when using adb on Mac OS X 10.4 and 10.5.
Unless otherwise noted, known issues from m3-rc20a also apply to m3-rc22a.
- - - -The following are known issues in m3-rc20a:
- -In certain circumstances, icons for newly installed applications do not display as expected.
- -The emulator currently does not support non-QWERTY keyboards.
- -The adb shell command may fail to connect when used for the first time.
- -On Windows, the emulator screen will sometimes show up off-screen when it is started. The workaround for this is to right-click on the emulator taskbar entry, select Move, and move the window using keyboard arrow keys
- -The emulator may fail to start when using the -useaudio in some environments
The focus ring shown in the browser may sometimes not properly wrap links.
- -On Mac OS X 10.5, the Eclipse plugin's Run Dialog may sometimes fail to show the option to select the Android Launcher.
- -On Mac OS X 10.5, adb will emit warnings about deprecated API use when first used.
- -extremely rapid or prolonged scrolling in the Maps application or in a MapView will result in application errors.
- -The emulator console listens for connections on ports 5554-5587. Future versions will only accept connections from localhost. It is recommend that you use a firewall to block external connections to those ports on your development machine.
- -On Mac OS X 10.4, the emulator may hang if started in the background (i.e. ./emulator &).
On Mac OS X 10.5, the emulator will emit warnings about deprecated API use when started from the command line.
- -The dmtracedump and traceview tools are not available in the SDK.
- -On Windows, running multiple emulator consoles can result in unexpected behavior when simulating incoming telephone calls.
- -Unanswered incoming calls placed from the emulator console, will result in an unfinished call UI if you press the call back button.
- -Using activityCreator with the --ide intellij option creates IntelliJ scripts with incorrect documentation location specified. To correct, change value for the <JAVADOC> element in the generated .ipr file from file://.../docs/framework to file://.../docs/reference.
On Ubuntu 7.10 (Gusty), the Eclipse package installed by the apt-get install eclipse command uses java-gcj by default. This configuration is not compatible with the Android Eclipse plugin (ADT) and will result in "Class not found" errors whenever you access an ADT feature.
The resolution for this issue is to install a Sun JDK
-sudo update-java-alternatives --jre java-1.5.0-sun-
and then configure Eclipse to use it by exporting the following environment variable:
-export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-
or by adding following to your .eclipse/eclipserc file:
JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun- diff --git a/docs/html/tools/sdk/RELEASENOTES.jd b/docs/html/tools/sdk/RELEASENOTES.jd deleted file mode 100644 index cbcbb1299c6a0..0000000000000 --- a/docs/html/tools/sdk/RELEASENOTES.jd +++ /dev/null @@ -1,804 +0,0 @@ -page.title=SDK Release Notes -excludeFromSuggestions=true -@jd:body - -
This document provides version-specific information about Android SDK -releases.
- -The Android SDK has changed! If you've worked with the Android SDK before, -you will notice several important differences:
- -Note that if you are currently using the Android 1.6 SDK, you do not -necessarily need to install the new SDK, since your existing SDK already -includes the Android SDK and AVD Manager tool. To develop against Android 2.0.1, -for example, you could just download the Android 2.0.1 platform into your existing -SDK.
- -Release notes for Android platforms and other SDK components are -now available from the "SDK" tab, under "Downloadable SDK Components."
- -To get started with the SDK, review the Quick Start summary on the Android SDK download page or read Installing the SDK for detailed -installation instructions.
- - -This SDK provides updates to the development tools and Android system that -you use to create applications for compliant Android-powered devices.
- -This SDK release includes several new features for developers. Highlights of the -changes include:
- -android:minSdkVersion
-value the application declares in its manifest. For more information, see
-Android API LevelsFor details about the Android platforms included in the SDK — including -bug fixes, features, and API changes — please read the Android 1.6 version notes.
- -If you've been developing an application using an Android 1.1 SDK, you need -to make a few changes to your development environment to migrate to the new SDK. -Tools and documentation are provided to assist you. No changes to the source -code of an existing application should be needed, provided that your application -is not using Android internal structures or APIs.
- -To ensure that your existing application will work properly on a device -running the latest version of the Android platform, you are strongly encouraged -to migrate the application to the new SDK, compile it using the platform -matching the application's original API Level, and run it against the most -current platform.
- -An updated version of the ADT Plugin for Eclipse is available with the -Android 1.6 SDK. The new version, ADT 0.9.3, provides several new -features, including integrated support for the Android SDK and AVD Manager -and zipalign tool. In addition, the New Project Wizard now -lets you create a test package containing tests for your application. These -features are described in the sections below.
- -If you are developing in Eclipse with ADT and want to get started with the -Android 1.6 SDK, you should download and install a compatible version of the ADT -Plugin (0.9.3 or higher).
- -The new version of ADT is downloadable from the usual remote update site or -is separately downloadable as a .zip archive. For instructions on how to -download the plugin, please see ADT Plugin for Eclipse.
- -The SDK offers a new tool called Android SDK and AVD Manager that lets you -manage your SDK and AVD environments more efficiently.
- -Using the tool, you can quickly check what Android platforms, add-ons, -extras, and documentation packages are available in your SDK environment, what -their versions are, and whether updated versions are available. You can then -download one or more items from remote repositories and install them directly in -your SDK environment. For example, the tool lets you obtain updates to SDK tools -incrementally, as they are made available, without having to wait for the next -SDK release. You can also download Android platform versions into your -environment that were not included in the SDK package.
- -The tool also lets you quickly create new AVDs, manage -their properties, and run a target AVD from a single window.
- -If you are developing in Eclipse with ADT, you can access the Android SDK -and AVD Manager from the Window menu.
- -If you are developing in another IDE, you can access the Android SDK and
-AVD Manager through the android command-line tool, located in the
-<sdk>/tools directory. You can launch the tool with a graphical UI by
-using the android command without specifying any options. You can
-also simply double-click the android.bat (Windows) or android (OS X/Linux) file.
-You can still use android commands to create and manage AVDs,
-including AVDs with custom hardware configurations.
The Android system offers a performance optimization for installed
-application packages whose contained uncompressed files are all aligned on
-4-byte boundaries. For these .apks, the system can read the files by mmap'ing
-the zip file, rather than by copying all the data out of them. This reduces
-the amount of memory used by the application at run time. The SDK includes
-a tool called zipalign that you can run against your .apks, to
-align them properly and enable them to benefit from this optimization.
The ADT Plugin and the Ant build tools both provide integrated support for
-aligning your application packages. After you build an .apk, the SDK tools can
-sign and then run zipalign against it. The SDK includes the
-standalone version of the zipalign tool, so you can run also run it
-manually from the command line if you choose.
zipalign is integrated into the Export Wizard. When you use the
-Wizard to export a signed application package, ADT signs and then automatically
-runs zipalign against the exported package. If you use the Wizard
-to export an unsigned application package, then it will not zipalign the
-package because zipalign must be performed only after the APK has been signed.
-You must manually sign and zipalign the package after export. zipalign the
-application package, provided that you have specified the location of a valid
-keystore in the build properties file. If you are compiling in debug mode, the
-build tools will sign the package with the debug key and then zipalign
-it.zipalign manually, change to the SDK tools directory
-and use the command syntax $ zipalign 4 <infile>
-<outfile>In general, note that you must zipalign an application only
-after it has been signed, as signing will disrupt the package
-alignment.
The New Project Wizard available in the ADT 0.9.3 now lets you add a test -package containing Instrumentation or other classes of tests while you are -creating or importing a new Android application project.
- -If you are using Windows and want to develop or test your application on an -Android-powered device (such as the T-Mobile G1), you need an appropriate USB -driver. - -
The Windows version of the Android 1.6 SDK includes a new, WinUSB-based -driver that you can install. The driver is compatible with both 32- and 64-bit -versions of Windows XP and Vista. The driver represents an upgrade from the USB -driver included in previous Android SDKs, although installing the new driver is -not required.
- -If you installed the USB driver from a previous SDK release and it is working -properly, you do not need to upgrade to the new driver. However, we recommend -upgrading if you have had any problems with the older driver or simply want -to upgrade to the latest version.
- -For driver installation or -upgrade instructions, see USB Driver for Windows.
- - -The Android 1.6 platform included in the SDK provides a new set of emulator -skins, including:
- -Besides these defaults, You can also create an AVD that overrides the default
-density for each skin, to create any combination of resolution/density (WVGA
-with medium density, for instance). To do so, use the android tool
-command line to create a new AVD that uses a custom hardware configuration. See
-Creating an
-AVD for more information.
Provides an updated Android 1.5 system image that includes permissions -fixes, as described below, and a new application — an IME for Japanese -text input. Also provides the same set of developer tools included in the -previous SDK, but with bug fixes and several new features.
- -The latest version of the Android platform, deployable to -Android-powered devices, includes fixes to the permissions-checking -in certain areas of the framework. Specifically, the Android system -now properly checks and enforces several existing permissions where it -did not do so in the previous release. Because of these changes in -enforcement, you are strongly encouraged to test your application -against the new Android 1.5 system image included in this SDK, to ensure -that it functions normally.
- -In particular, if your application uses any of the system areas listed below, -you should add the required permissions to the application's manifest and then -test the areas of your code that depend on the permission-protected services. -Even if you believe your application does not use the permissions-protected -services, you should compile and test your application under the latest platform -version to ensure that users will not encounter problems when using your -application.
- -The changes to permissions are as follows:
- -CAMERA permission check is now
-properly enforced. RECORD_AUDIO permission check is
-now properly enforced.For more information, see the issue described in the oCert advisory -below:
- -http://www.ocert.org/advisories/ocert-2009-011.html
- -android tool provides a new command that scans SDK add-ons
-for their USB Vendor IDs and makes them available to adb (OS X and Linux
-versions of the SDK only). The command is android update adb. On
-Windows versions of the SDK, a custom USB driver is included that supports the
-"Google" and "HTC" Vendor IDs, which allow adb to recognize G1 and HTC
-Magic devices. For other devices, contact the device manufacturer
-to obtain a USB driver, especially if you have an SDK add-on that defines
-a new USB Vendor ID.This SDK release provides the same developer tools as the Android 1.5 SDK, -Release 1, but provides an updated Android 1.5 system image that includes a -security patch for the issue described in the oCert advisory below:
- -http://www.ocert.org/advisories/ocert-2009-006.html
- -This SDK provides updates to the development tools and Android system that -you use to create applications for compliant Android-powered devices.
- -This SDK release includes many new features for developers. Highlights of the -changes include:
- -For details about the Android platforms included in the SDK — including -bug fixes, features, and API changes — please read the Android 1.5 version notes.
- -If you've been developing an application using an Android 1.1 SDK, you need -to make a few changes to your development environment to migrate to the new SDK. -Tools and documentation are provided to assist you. No changes to the source -code of an existing application should be needed, provided that your application -is not using Android internal structures or APIs.
- -To ensure that your existing application will work properly on a device -running the latest version of the Android platform, you are strongly encouraged -to migrate the application to the new SDK, compile it using the platform -matching the application's original API Level, and run it against the most -current platform.
- -This version of the SDK introduces support for SDK add-ons, which extend the -Android SDK to give you access to one or more external Android libraries and/or -a customized (but compliant) system image that can run in the emulator. The -purpose of an SDK add-on is to give you a way to develop applications for a -specific actual device (or family of devices) that extends the APIs available to -Android applications through external libraries or system customizations.
- -From the perspective of your Android development environment, an SDK add-on -is similar to any of the Android platform targets included in the SDK — it -includes an external library, a system image, as well as custom emulator skins -and system properties. The add-on differs in that the Android platform it -provides may include customized UI, resources, or behaviors, a different set of -preinstalled applications, or other similar modifications. - -
The SDK includes a single SDK add-on — the Google APIs add-on. The -Google APIs add-on gives your application access to the com.google.android.maps -external library that is included on many (if not most) Android-powered devices. -The Google APIs add-on also includes a {@link android.location.Geocoder Geocoder} -backend service implementation. For more information, see the "Maps External -Library" section below.
- -The SDK now gives you the capability to compile an application against any -one of several system targets, then run it in the emulator on top of any -compatible system image. There are two types of targets:
-A new tool called "android" lets you discover what targets and AVDs are -available to use.
- -For more information about AVDs, see Creating and Managing Virtual Devices - -
Maps External Library
- -In previous versions of the SDK, the com.google.android.maps package was -included in the standard Android library and system image. In the Android 1.5 -SDK, that is not the case. The Android 1.5 library and system image do not -include the Maps external library (com.google.android.maps). However, the Maps -external library is available as part of the Google APIs add-on for the Android -SDK, downloadable from this location:
- -http://code.google.com -/android/add-ons/google-apis
- -For your convenience, the Google APIs add-on is included in the SDK.
- -For information about how to register for a Maps API Key, see - -Obtaining a Maps API Key.
- -USB Drivers for Windows
- -If you are using Windows and want to develop or test your application on an -Android-powered device (such as the T-Mobile G1), you need an appropriate USB -driver. For your convenience, the Windows version of the Android SDK includes -these USB drivers that you can install, to let you develop on the device:
- -For driver installation or -upgrade instructions, see USB Driver for Windows.
- - -Media
-Sensor problems in Emulator
- -Other
- -This SDK provides the development tools and Android system image you need to -create applications for Android-powered devices. Applications developed on this -SDK will be compatible with mobile devices running the Android 1.1 platform. -
- -This release provides an updated system image (Android 1.1), updated -documentation, and the same set of development tools provided in the Android 1.0 -r2 SDK. The updated system image includes bug fixes and some smaller features, -as well as a few minor API changes from the 1.0 version.
- -For details about the Android 1.1 system image included in the SDK — -including bug fixes, features, and API changes — please read the Android 1.1 version notes.
- -If you are using this SDK to build an application that is compatible
-only with Android-powered devices running the Android 1.1 platform,
-please note that you must set the the
-android:minSdkVersion attribute in the application's manifest to
-the API Level of Android 1.1 — "2".
Specifically, you specify the android:minSdkVersion attribute in
-a <uses-sdk> element as a child of
-<manifest> in the manifest file. When set, the attribute
-looks like this:
<manifest>
- ...
- <uses-sdk android:minSdkVersion="2" />
- ...
-</manifest>
-
-
-By setting android:minSdkVersion in this way, you ensure that
-users will only be able to install your application if their devices are running
-the Android 1.1 platform. In turn, this ensures that your application will
-function properly on their devices, especially if it uses APIs introduced in
-Android 1.1.
If your application uses APIs introduced in Android 1.1 but does not declare
-<uses-sdk android:minSdkVersion="2" />, then it will run properly on
-Android 1.1 devices but not on Android 1.0 devices.
If your application does not use any new APIs introduced in Android 1.1, you
-can indicate Android 1.0 compatibility by removing android:minSdkVersion or
-setting the attribute to "1". However, before publishing your application, you
-must make sure to compile your application against the Android 1.0 system image
-(available in the Android 1.0 SDK), to ensure that it builds and functions
-properly for Android 1.0 devices. You should test the application against system
-images corresponding to the API Levels that the application is designed to be
-compatible with.
If you are sure your application is not using Android 1.1 APIs and has no -need to use them, you might find it easier to keep working in the Android 1.0 -SDK, rather than migrating to the Android 1.1 SDK and having to do additional -testing.
- - -For this version of the SDK — Android 1.1 SDK, Release 1 -— the compatible version of the Android Development Tools (ADT) -Plugin for Eclipse is 0.8.0. If you are using a -previous version of ADT, you should update to the latest version for use -with this SDK. For information about how to update your ADT plugin, see -ADT Plugin for Eclipse.
- -If you've been developing an application using an Android 1.0 SDK no
-changes to your application are needed. You may want to wipe application
-user data (emulator option -wipe-data) when running your
-application on the Android 1.1 emulator for the first time.
MapView API Key
- -com.google.android.maps.MapView is a class that lets you -easily integrate Google Maps into your application. Before you can -access the maps data, you will need to register with the Google Maps -service and receive a Maps API Key, which you then add to your MapView -for authentication to the server.
- -Developers should note that the registration service for MapView is now -active and Google Maps is actively enforcing the Maps API Key requirement. -For information about how to register for a Maps API Key, see - -Obtaining a Maps API Key.
- -USB Drivers for Windows
- -If you using Windows and want to develop or test your application on an -Android-powered device (such as the T-Mobile G1), you need an appropriate USB -driver. For your convenience, the Windows version of the Android SDK includes -these USB drivers that you can install, to let you develop on the device:
- -The USB driver files are located in the
-<SDK>/usb_driver directory. For details and
-installation instructions, see Connecting Hardware Devices.
Emulator
-JUnit and Eclipse/ADT
-Other
- --http-proxy. rm -rf ~/.android, then try to run
-the emulator, it crashes. This happens because the emulator fails to create
-a new .android directory before attempting to create the child SDK1.0 directory.
-To work around this issue, manually create a new .android directory using
-mkdir ~/.android, then run the emulator. The emulator
-creates the SDK1.0 directory and starts normally. power <option>)
-are not working in this release.This SDK release includes the Android 1.0 platform and application API. -Applications developed on this SDK will be compatible with mobile devices -running the Android 1.0 platform.
- -This release includes mainly bug fixes, although some smaller features were -added.
- -For this release of the SDK, the compatible version of the Android -Development Tools (ADT) Plugin for Eclipse is 0.8.0. If you are -using a previous version of ADT, you should update to the latest version for use -with this SDK. For information about how to update your ADT plugin, see ADT Plugin for Eclipse.
- -T-Mobile G1 Compatibility
- -This version of the SDK has been tested for compatibility with the first -Android-powered mobile device, the T-Mobile -G1.
- -MapView API Key
- -MapView is a class that lets you easily integrate Google Maps into your -application. Before you can access the maps data, you will need to register with -the Google Maps service and receive a Maps API Key, which you then add to your -MapView for authentication to the server.
- -Developers should note that the registration service for MapView is now -active and Google Maps is actively enforcing the Maps API Key requirement. For -information about how to register for a Maps API Key, see http://code.google.com/android/add-ons/google-apis/mapkey.html. -
- -USB Driver for Windows
-If you using Windows and want to develop or test your application on an
-Android-powered device (such as the T-Mobile G1), you need an appropriate USB
-driver. For your convenience, the Windows version of the Android SDK includes a
-USB driver that you can install, to let you develop on the device. The USB
-driver files are located in the <SDK>/usb_driver directory.
-
-
<declare-styleable> in your project's res/values/R.attrs
-file, then declare the attribute inside. For examples, see
-<sdk>/samples/ApiDemos/res/values/attrs.xml. For more information about
-custom resources, see Custom
-Layout Resources. Note that the android.R.styleable documentation is still
-provided in the SDK, but only as a reference of the platform's styleable
-attributes for the various elements.Unless otherwise noted, Known Issues from the previous SDK release also apply -to this release.
- - - - - - -This SDK release is the first to include the Android 1.0 platform and application API. Applications developed on this SDK will be compatible with mobile devices running the Android 1.0 platform, when such devices are available.
- -This release includes mainly bug fixes, although some smaller features were added. The Android 1.0 also includes several API changes from the 0.9 version. For those porting from the M5 release, the SDK also includes the legacy changes overview and API Differences Reports. See the current Overview of Changes for more information.
- -For this version of the SDK — Android 1.0 SDK, Release 1 — the compatible version of the Android Development Tools (ADT) Plugin for Eclipse is 0.8.0. If you are using a previous version of ADT, you should update to the latest version for use with this SDK. For information about how to update your ADT plugin, see Upgrading the SDK.
- -If you've been developing an application using a previous SDK version and you want the application to run on Android-powered mobile devices, you must port the application to the Android 1.0 SDK. Please see Upgrading the SDK for detailed instructions on how to make the transition to this release. Be sure to wipe application user data (emulator option -wipe-data) when running your application on the Android 1.0 SDK emulator.
MapView API Key
- -MapView is a class that lets you easily integrate Google Maps into your application. Before you can access the maps data, you will need to register with the Google Maps service and receive a Maps API Key, which you then add to your MapView for authentication to the server.
- -Currently, the registration service for MapView is not yet active and Google Maps is not yet enforcing the Maps API Key requirement. However, note that the registration service will be activated soon, so that MapViews in any application deployed to a mobile device will require registration and a valid Maps API Key.
- -As soon as the registration service becomes available, we will update the page at http://code.google.com/android/add-ons/google-apis/mapkey.html with details about how and where to register. Please check that page periodically for registration information, if you are using a MapView.
- - -Emulator
-SQLite
-Other
- --http-proxy. rm -rf ~/.android, then try to run
-the emulator, it crashes. This happens because the emulator fails to create
-a new .android directory before attempting to create the child SDK1.0 directory.
-To work around this issue, manually create a new .android directory using
-mkdir ~/.android, then run the emulator. The emulator
-creates the SDK1.0 directory and starts normally. power <option>)
-are not working in this release.This page describes how to install the Android SDK -and set up your development environment for the first time.
- -If you encounter any problems during installation, see the -Troubleshooting section at the bottom of -this page.
- -If you already have an Android SDK, use the Android SDK Manager tool to install -updated tools and new Android platforms into your existing environment. For information about how to -do that, see Exploring the SDK.
- - -Before getting started with the Android SDK, take a moment to confirm that -your development computer meets the System -Requirements. In particular, you might need to install the JDK, if you don't have it already.
- -If you will be developing in Eclipse with the Android Development -Tools (ADT) Plugin—the recommended path if you are new to -Android—make sure that you have a suitable version of Eclipse -installed on your computer as described in the -System Requirements document. -If you need to install Eclipse, you can download it from this location:
- -http://www.eclipse.org/downloads/
- -The "Eclipse Classic" version is recommended. Otherwise, a Java or -RCP version of Eclipse is recommended.
- - -The SDK starter package is not a full -development environment—it includes only the core SDK Tools, which you can -use to download the rest of the SDK packages (such as the latest Android platform).
- -If you haven't already, get the latest version of the SDK starter package from the SDK download page.
- -If you downloaded a {@code .zip} or {@code .tgz} package (instead of the SDK installer), unpack
-it to a safe location on your machine. By default, the SDK files are unpacked
-into a directory named android-sdk-<machine-platform>.
If you downloaded the Windows installer ({@code .exe} file), run it now and it will check -whether the proper Java SE Development Kit (JDK) is installed (installing it, if necessary), then -install the SDK Tools into a default location (which you can modify).
- -Make a note of the name and location of the SDK directory on your system—you will need to -refer to the SDK directory later, when setting up the ADT plugin and when using -the SDK tools from the command line.
- - -Android offers a custom plugin for the Eclipse IDE, called Android -Development Tools (ADT), that is designed to give you a powerful, integrated -environment in which to build Android applications. It extends the capabilites -of Eclipse to let you quickly set up new Android projects, create an application -UI, debug your applications -using the Android SDK tools, and even export signed (or unsigned) APKs in order -to distribute your application. In general, developing in Eclipse with ADT is a -highly recommended approach and is the fastest way to get started with Android. -
- -If you'd like to use ADT for developing Android applications, install it now. -Read Installing the ADT Plugin for -step-by-step installation instructions, then return here to continue the -last step in setting up your Android SDK.
- -If you prefer to work in a different IDE, you do not need to -install Eclipse or ADT. Instead, you can directly use the SDK tools to build and -debug your application. The Introduction -to Android application development outlines the major steps that you need to complete when -developing in Eclipse or other IDEs.
- - - -The last step in setting up your SDK is using the Android SDK Manager (a -tool included in the SDK starter package) to download essential SDK packages into your development -environment.
- -The SDK uses a modular structure that separates the major parts of the SDK—Android platform -versions, add-ons, tools, samples, and documentation—into a set of separately installable -packages. The SDK starter package, which you've already downloaded, includes only a single -package: the latest version of the SDK Tools. To develop an Android application, you also need to -download at least one Android platform and the associated platform tools. You can add other -packages and platforms as well, which is highly recommended.
- -If you used the Windows installer, when you complete the installation wizard, it will launch the -Android SDK Manager with a default set of platforms and other packages selected -for you to install. Simply click Install to accept the recommended set of -packages and install them. You can then skip to Step 5, but we -recommend you first read the section about the Available Packages to -better understand the packages available from the Android SDK Manager.
- -You can launch the Android SDK Manager in one of the following ways:
-SDK Manager.exe file at the root of the Android
-SDK directory.tools/ directory in the
-Android SDK, then execute: android
To download packages, use the graphical UI of the Android SDK -Manager to browse the SDK repository and select new or updated -packages (see figure 1). The Android SDK Manager installs the selected packages in -your SDK environment. For information about which packages you should download, see Recommended Packages.
- -
-Figure 1. The Android SDK Manager's -Available Packages panel, which shows the SDK packages that are -available for you to download into your environment.
- - -By default, there are two repositories of packages for your SDK: Android -Repository and Third party Add-ons.
- -The Android Repository offers these types of packages:
- -<sdk>/tools/ directory of
-your SDK. To learn more about
-them, see SDK Tools in the
-developer guide.<sdk>/platform-tools/ directory. To learn more about them, see Platform Tools in the
-developer guide.The Third party Add-ons provide packages that allow you to create a development -environment using a specific Android external library (such as the Google Maps library) or a -customized (but fully compliant) Android system image. You can add additional Add-on repositories by -clicking Add Add-on Site.
- - -The SDK repository contains a range of packages that you can download. -Use the table below to determine which packages you need, based on whether you -want to set up a basic, recommended, or full development environment: -
- -| Environment | -SDK Package | -Comments | -
|---|---|---|
| Basic | -SDK Tools | -If you've just installed -the SDK starter package, then you already have the latest version of this package. The -SDK Tools package is required to develop an Android application. Make sure you keep this up to -date. | -
| SDK Platform-tools | -This includes more tools that are required -for application development. These tools are platform-dependent and typically update only when -a new SDK platform is made available, in order to support new features in the platform. These -tools are always backward compatible with older platforms, but you must be sure that you have -the latest version of these tools when you install a new SDK platform. | -|
| SDK platform | -You need to download at least one platform into your environment, so that -you will be able to compile your application and set up an Android Virtual -Device (AVD) to run it on (in the emulator). To start with, just download the -latest version of the platform. Later, if you plan to publish your application, -you will want to download other platforms as well, so that you can test your -application on the full range of Android platform versions that your application supports. | -|
| + | - | |
| Recommended (plus Basic) |
-Documentation | -The Documentation package is useful because it lets you work offline and -also look up API reference information from inside Eclipse. | -
| Samples | -The Samples packages give you source code that you can use to learn about -Android, load as a project and run, or reuse in your own app. Note that multiple -samples packages are available — one for each Android platform version. When -you are choosing a samples package to download, select the one whose API Level -matches the API Level of the Android platform that you plan to use. | -|
| Usb Driver | -The Usb Driver package is needed only if you are developing on Windows and -have an Android-powered device on which you want to install your application for -debugging and testing. For Mac OS X and Linux platforms, no -special driver is needed. | -|
| + | - | |
| Full (plus Recommended) |
-Google APIs | -The Google APIs add-on gives your application access to the Maps external -library, which makes it easy to display and manipulate Maps data in your -application. | -
| Additional SDK Platforms | -If you plan to publish your application, you will want to download -additional platforms corresponding to the Android platform versions on which you -want the application to run. The recommended approach is to compile your -application against the lowest version you want to support, but test it against -higher versions that you intend the application to run on. You can test your -applications on different platforms by running in an Android Virtual Device -(AVD) on the Android emulator. | -|
Once you've installed at least the basic configuration of SDK packages, you're ready to start -developing Android apps. The next section describes the contents of the Android SDK to familiarize -you with the packages you've just installed.
- -For more information about using the Android SDK Manager, see the Exploring the SDK document.
- - -Once you've installed the SDK and downloaded the platforms, documentation, -and add-ons that you need, we suggest that you open the SDK directory and take a look at what's -inside.
- -The table below describes the full SDK directory contents, with packages -installed.
- -| Name | Description | -||
|---|---|---|---|
add-ons/ |
-Contains add-ons to the Android SDK development -environment, which let you develop against external libraries that are available on some -devices. | -||
docs/ |
-A full set of documentation in HTML format, including the Developer's Guide,
-API Reference, and other information. To read the documentation, load the
-file index.html in a web browser. |
-||
platform-tools/ |
-Contains platform-dependent development tools that may be updated with each platform release. -The platform tools include the Android Debug Bridge ({@code adb}) as well as other tools that you -don't typically use directly. These tools are separate from the development tools in the {@code -tools/} directory because these tools may be updated in order to support new -features in the latest Android platform. | -||
platforms/ |
-Contains a set of Android platform versions that you can develop -applications against, each in a separate directory. | -||
| - | <platform>/ |
-Platform version directory, for example "android-11". All platform version directories contain
-a similar set of files and subdirectory structure. Each platform directory also includes the
-Android library (android.jar) that is used to compile applications against the
-platform version. |
-|
samples/ |
-Sample code and apps that are specific to platform version. | -||
tools/ |
-Contains the set of development and profiling tools that are platform-independent, such
-as the emulator, the Android SDK Manager, the AVD Manager, ddms,
-hierarchyviewer
-and more. The tools in this directory may be updated at any time using the Android SDK
-Manager and are independent of platform releases. |
-||
SDK Readme.txt |
-A file that explains how to perform the initial setup of your SDK, -including how to launch the Android SDK Manager tool on all -platforms. | -||
SDK Manager.exe |
-Windows SDK only. A shortcut that launches the Android SDK -Manager tool, which you use to add packages to your SDK. | -||
Optionally, you might want to add the location of the SDK's tools/ and
-platform-tools to your PATH environment variable, to provide easy
-access to the tools.
- How to update your PATH
- Adding both tools/ and platform-tools/ to your PATH lets you run
-command line tools without needing to
-supply the full path to the tool directories. Depending on your operating system, you can
-include these directories in your PATH in the following way:
tools/ and platform-tools/ directories to the path. ~/.bash_profile or ~/.bashrc file. Look
- for a line that sets the PATH environment variable and add the
- full path to the tools/ and platform-tools/ directories to it. If you
- don't see a line setting the path, you can add one:
- export PATH=${PATH}:<sdk>/tools:<sdk>/platform-tools
- .bash_profile and
- proceed as for Linux. You can create the .bash_profile if
- you don't already have one. Once you have completed installation, you are ready to -begin developing applications. Here are a few ways you can get started:
- -Set up the Hello World application
-Following the Hello World tutorial is an essential -first step in getting started with Android development.
- -Learn about Android
-Explore the development tools
-Follow the Notepad tutorial
- -Following the Notepad tutorial is an excellent -second step in getting started with Android development.
- -Explore some code
- -<sdk>/samples/<platform>/. Visit the Android developer groups
-ia32-libs package using
- apt-get::
- apt-get install ia32-libs-
apt-get install sun-java6-jdk
This page provides a full list of archived and obsolete SDK releases, -including non-current versions of active releases and "early look" versions that -were released before Android 1.0. These are provided for -informational and archival purposes only.
- -If you are just starting to develop applications for Android, please -download the current Android -SDK. With the current Android SDK, you can add any current and previous -version of the Android platform as a component and use it for -development and testing.
-If you already have an Android SDK for platform version 1.6 or newer, then -you do not need to install a new SDK—especially not one from this page. -You should install older platforms as components of your existing SDK. -See Exploring the SDK.
-The tables below provides Android SDKs that are current in terms of their -platform version, but do not provide the latest Android development -environment and tools. Instead of downloading one of these, as a separate -SDK for each version of the platform, you should instead use the new -version-neutral Android SDK to download each version of -the Android platfrom as an individual component.
- -Please download the current Android SDK.
- - -September 2009 - Release -Notes
- -| Platform | -Package | -Size | -MD5 Checksum | -
|---|---|---|---|
| Windows | -- android-sdk- -windows-1 .6_r1.zip - | -260529085 bytes | -2bcbacbc7af0363058ca1cac6abad848 | -
| Mac OS X (intel) | -- android-sdk- -mac_x86-1 .6_r1.zip - | -247412515 bytes | -eb13cc79602d492e89103efcf48ac1f6 | -
| Linux (i386) | -- android- -sdk- linux_x86-1.6_r1.tgz - | -238224860 bytes | -b4bf0e610ff6db2fb6fb09c49cba1e79 | -
July 2009 - Release -Notes
- -| Platform | -Package | -Size | -MD5 Checksum | -
|---|---|---|---|
| Windows | -- android-sdk- -windows-1 .5_r3.zip - | -191477853 bytes | -1725fd6963ce69102ba7192568dfc711 | -
| Mac OS X (intel) | -- android-sdk- -mac_x86-1 .5_r3.zip - | -183024673 bytes | -b1bafdaefdcec89a14b604b504e7daec | -
| Linux (i386) | -- android- -sdk- linux_x86-1.5_r3.zip - | -178117561 bytes | -350d0211678ced38da926b8c9ffa4fac | -
February 2009 - Release -Notes
- -| Platform | -Package | -Size | -MD5 Checksum | -
|---|---|---|---|
| Windows | -- android-sdk- -windows-1 -.1_r1.zip - | -86038515 bytes | -8c4b9080b430025370689e03d20842f3 | -
| Mac OS X (intel) | -- android-sdk- -mac_x86-1 -.1_r1.zip - | -79046151 bytes | -becf0f1763d61eedce15d2a903d6c1dd | -
| Linux (i386) | -- android- -sdk- -linux_x86-1.1_r1.zip - | -79345522 bytes | -ebcb16b0cd4aef198b4dd9a1418efbf1 | -
November 2008 - Release -Notes
- -| Platform | -Package | -Size | -MD5 Checksum | -
|---|---|---|---|
| Windows | -- android-sdk- -windows-1 -.0_r2.zip - | -98360564 bytes | -a5e1af8ac145946b4a9627516ad4a711 | -
| Mac OS X (intel) | -- android-sdk- -mac_x86-1 -.0_r2.zip - | -93771410 bytes | -87b99d5e9f59b78363a63200c11498e8 | -
| Linux (i386) | -- android- -sdk- -linux_x86-1.0_r2.zip - | -94186463 bytes | -a1f3b6d854596f850f5008856d0f380e | -
These tables provide Android SDK releases that have been superceded by -an active release (shown above) and that are now obsolete.
- - -May 2009 - Release -Notes
- -| Platform | -Package | -Size | -MD5 Checksum | -
|---|---|---|---|
| Windows | -- android-sdk- -windows-1 .5_r2.zip - | -178346828 bytes | -ba54ac6bda45921d442b74b6de6ff6a9 | -
| Mac OS X (intel) | -- android-sdk- -mac_x86-1 .5_r2.zip - | -169945128 bytes | -f4e06a5194410243f213d0177713d6c9 | -
| Linux (i386) | -- android- -sdk- linux_x86-1.5_r2.zip - | -165035130 bytes | -1d3c3d099e95a31c43a7b3e6ae307ed3 | -
April 2009 - Release -Notes
- -| Platform | -Package | -Size | -MD5 Checksum | -
|---|---|---|---|
| Windows | -- android-sdk- -windows-1 .5_r1.zip - | -176263368 bytes | -42be980eb2d3efaced01ea6c32c0045f | -
| Mac OS X (intel) | -- android-sdk- -mac_x86-1 .5_r1.zip - | -167848675 bytes | -5b2a8d9f096032db4a75bfa0d689a51b | -
| Linux (i386) | -- android- -sdk- linux_x86-1.5_r1.zip - | -162938845 bytes | -2addfd315da0ad8b5bde6b09d5ff3b06 | -
September 23, 2008 - Release -Notes
- -| Platform | -Package | -Size | -MD5 Checksum | -
|---|---|---|---|
| Windows | -- android-sdk- -windows-1 .0_r1.zip - | -89.7 MB bytes | -d69f4ee93d4010f726c04302662fd999 | -
| Mac OS X (intel) | -- android-sdk- -mac_x86-1 .0_r1.zip - | -87.5 MB bytes | -564876ada22872e50c2866806de9fc5c | -
| Linux (i386) | -- android- -sdk- linux_x86-1.0_r1.zip - | -87.8 MB bytes | -2660b4029039b7d714e59827e9a9a11d | -
The SDKs listed below are "early-look" versions that were released in - the year preceding the full release of Android 1.0 in September 2008. Because - these early-look SDKs were released before the Android 1.0 API specification was - finalized, they do not provide a compliant Android execution environment. - Consequently, applications that you develop in these SDKs will not be able to - run on any Android-powered devices.
- -If you have an older application that you built in one of the early-look -SDKs, you must migrate it to the Android 1.0 SDK (or later release) before you -will be able to deploy it to an Android-powered device. To help with this -migration, each SDK package below provides information about API changes from -the previous version. You can find the migration information in the -documentation included in each SDK package.
- - -August 18, 2008 - Release Notes
-| Package | -Size | -MD5 Checksum | -|
|---|---|---|---|
| Windows | -- -android-sdk-windows-0.9_beta.zip | -93,126,573 bytes | -305031ad8335d1b6040bdd5a65349d6d | -
| Mac OS X (intel) | -- -android-sdk-mac_x86-0.9_beta.zip | -91,374,464 bytes | -9a6969159091cede46302e11049fe3ca | -
| Linux (i386) | --android-sdk-linux_x86-0.9_beta.zip | -91,821,068 bytes | -077e5ef549dd9c5be54bd88e6a8e196c | -
March 3, 2008 - Release Notes
-| Package | -Size | -MD5 Checksum | -|
|---|---|---|---|
| Windows | -- -android-sdk_m5-rc15_windows.zip | -79 MB | -ecce40bc50201886d95ba2690cdbc5ce | -
| Mac OS X (intel) | -- -android-sdk_m5-rc15_mac-x86.zip | -76 MB | -45a6385bbc1b2cb295409cfc81fb04b4 | -
| Linux (i386) | -- -android-sdk_m5-rc15_linux-x86.zip | -76 MB | -e913f785afecdeed34c30639fd8c5862 | -
February 12, 2008 - Release Notes
-| Package | -Size | -MD5 Checksum | -|
|---|---|---|---|
| Windows | -- -android-sdk_m5-rc14_windows.zip | -79 MB | -ecc75c1e69588350634ca25867ce05a0 | -
| Mac OS X (intel) | -- -android-sdk_m5-rc14_mac-x86.zip | -76 MB | -844c80d0adb1a326f5a9fff262c61efc | -
| Linux (i386) | -- -android-sdk_m5-rc14_linux-x86.zip | -76 MB | -f8b863c8a880afe9bb84124f5976aab1 | -
December 14, 2007 - Release Notes
-| Package | -Size | -MD5 Checksum | -|
|---|---|---|---|
| Windows | -- -android_sdk_windows_m3-rc37a.zip | -58 MB | -5db5aea20a2c2f010baefc4b1091a575 | -
| Mac OS X (intel) | -- -android_sdk_darwin_m3-rc37a.zip | -54 MB | -0b22e73fbd07b4af4009387afce3a37f | -
| Linux (i386) | -- -android_sdk_linux_m3-rc37a.zip | -54 MB | -41285beecc4f9926e6ecf5f12610b356 | -
November 16, 2007 - Release Notes
-| Package | -Size | -MD5 Checksum | -|
|---|---|---|---|
| Windows | -- -android_sdk_windows_m3-rc22a.zip | -59 MB | -aa3dee05a9872752a3bc4efd0f93e98b | -
| Mac OS X (intel) | -- -android_sdk_darwin_m3-rc22a.zip | -55 MB | -0547f45614ad94c3af22c3c0aa6f709f | -
| Linux (i386) | -- -android_sdk_linux_m3-rc22a.zip | -55 MB | -84b3455de5cdfd841a172c13d24c382e | -
November 12, 2007 - Release Notes
-| Package | -Size | -MD5 Checksum | -|
|---|---|---|---|
| Windows | -- -android_sdk_windows_m3-rc20a.zip | -59 MB | -a404b875708df7339ba77bdf2e08dc06 | -
| Mac OS X (intel) | -- -android_sdk_darwin_m3-rc20a.zip | -55 MB | -8fc29aeaa45eda84bfac854ebd02a6da | -
| Linux (i386) | -- -android_sdk_linux_m3-rc20a.zip | -55 MB | -9196759df9b69cd89a220b156f133364 | -
The Google USB driver is a downloadable component for the Android SDK, available -from the SDK Manager. The driver is for Windows only and provides the necessary drivers for the -following devices:
-* Or similar hardware on other carriers
- -All other devices require Windows drivers provided by the hardware manufacturer, as listed in -the OEM USB Drivers document. The Galaxy Nexus -driver is also distributed by Samsung -(listed as model SCH-I515).
- -Note: -If you're developing on Mac OS X or Linux, then you do not need to install a USB driver. To start -developing with your device, also read Using -Hardware Devices.
- -The sections below provide instructions on how to download and install the Google USB Driver -for Windows.
- - - - -The sections below provide notes about successive revisions of the USB Driver -for Windows, as denoted by revision number. To determine what revision of the -USB Driver for Windows you are using, refer to the "Installed Packages" listing -in the Android SDK Manager.
- - - - -
-USB Driver for Windows, Revision 4 (December 2010)
- Adds support for the Nexus S.
-USB Driver for Windows, Revision 3 (January 2010)
- Adds support for the Nexus One.
-USB Driver for Windows, Revision 2 (November 2009)
- Adds support for the Verizon Droid (or similar hardware on -other carriers).
-USB Driver for Windows, Revision 1 (October 2009)
- Initial release of the WinUsb-based driver, with support -for the T-Mobile G1 and myTouch 3G (and similar devices).
- Figure 1. The SDK Manager - with the Google USB Driver selected.
-The USB Driver for Windows is available for download as an optional SDK -component. You need the driver only if you are developing on Windows and -want to connect an Android-powered device (ADP, Nexus One, or Nexus S) to your -development environment over USB.
- -To download the driver, use the Android SDK Manager tool that is -included with the Android SDK:
-SDK Manager.exe,
- at the root of your SDK directory.<sdk>\extras\google\usb_driver\ directory.For installation information, read Installing a USB Driver.
diff --git a/docs/html/training/contacts-provider/ContactsList.zip b/docs/html/training/contacts-provider/ContactsList.zip deleted file mode 100644 index d2a5cfb5a196a..0000000000000 Binary files a/docs/html/training/contacts-provider/ContactsList.zip and /dev/null differ diff --git a/docs/html/training/multiple-threads/threadsample.zip b/docs/html/training/multiple-threads/threadsample.zip deleted file mode 100644 index bdc3ccfd7040a..0000000000000 Binary files a/docs/html/training/multiple-threads/threadsample.zip and /dev/null differ