From c74a69a89a0f65bca87520928a714ed20c45873d Mon Sep 17 00:00:00 2001
From: Robert Ly In this document
-
+
+
You can create as many AVDs as you would like to test on. It is recommended that you test your applications on all API levels higher than the target API level for your application.
diff --git a/docs/html/guide/developing/index.jd b/docs/html/guide/developing/index.jd index 879986c7c7fd5..f19f97e9ca681 100644 --- a/docs/html/guide/developing/index.jd +++ b/docs/html/guide/developing/index.jd @@ -23,32 +23,33 @@ page.title=Overview before continuing. -You need to create Android Virtual Devices (AVD) or connect hardware devices on which you will install your applications.
+ +See Creating and Managing Virtual Devices + and Connecting Hardware Devices for more information.
An Android project contains all source code and resource files for your application. It is
built into an .apk package that you can install on Android devices.
If you are using Eclipse, builds are generated each time you save changes and you can install your application on a device by clicking Run. If you're using another IDE, you can build your - project using Ant and install it on a device using ADB.
+ project using Ant and install it on a device usingadb.
Debugging your application involves using a JDWP-compliant debugger along with the
@@ -110,6 +111,6 @@ page.title=Overview
Eclipse, such as the adb shell commands. You might also need to call Keytool and Jarsigner to
sign your applications, but you can set up Eclipse to do this automatically as well.
For more information on these tools, see the - Tools section of the documentation.
+For more information on the tools provided with the Android SDK, see the + Tools section of the documentation.
diff --git a/docs/html/guide/developing/projects/index.jd b/docs/html/guide/developing/projects/index.jd index 1daf73864986f..45fd5a1c90d3e 100644 --- a/docs/html/guide/developing/projects/index.jd +++ b/docs/html/guide/developing/projects/index.jd @@ -8,7 +8,11 @@ page.title=Creating and Managing Projects @@ -418,6 +422,81 @@ page.title=Creating and Managing Projects project can reference the library project through a relative link.This section provides information about how to migrate a library project +created with ADT 0.9.7 to ADT 0.9.8 or higher. The migration is needed only if +you are developing in Eclipse with ADT and assumes that you have also upgraded +to SDK Tools r7 (or higher).
+ +The way that ADT handles library projects has changed between
+ADT 0.9.7 and ADT 0.9.8. Specifically, in ADT 0.9.7, the src/
+source folder of the library was linked into the dependent application project
+as a folder that had the same name as the library project. This worked because
+of two restrictions on the library projects:
gen/ source folder), andsrc/ and be
+stored at the root of the project.In ADT 0.9.8, both of those restrictions were removed. A library project can
+have as many source folders as needed and each can have any name. Additionally,
+a library project can store source folders in any location of the project. For
+example, you could store sources in a src/java/ directory. In order
+to support this, the name of the linked source folders in the main project are
+now called <library-name>_<folder-name> For
+example: MyLibrary_src/ or MyLibrary_src_java/.
Additionally, the linking process now flags those folders in order for ADT to +recognize that it created them. This will allow ADT to automatically migrate the +project to new versions of ADT, should they contain changes to the handling of +library projects. ADT 0.9.7 did not flag the linked source folders, so ADT 0.9.8 +cannot be sure whether the old linked folders can be removed safely. After +upgrading ADT to 0.9.8, you will need to remove the old linked folders manually +in a simple two-step process, as described below.
+ +Before you begin, make sure to create a backup copy of your application or +save the latest version to your code version control system. This ensures that +you will be able to easily revert the migration changes in case there is a +problem in your environment.
+ +When you first upgrade to ADT 0.9.8, your main project will look as shown
+in figure 1, with two linked folders (in this example, MyLibrary and
+MyLibrary_src — both of which link to
+MyLibrary/src. Eclipse shows an error on one of them because they
+are duplicate links to a single class.
+Figure 1. Library project migration error
+To fix the error, remove the linked folder that does not contain the
+_src suffix.
MyLibrary folder) and choose Build Path >
+Remove from Build Path, as shown in figure 2.
+Figure 2. Remove from Build Path menu item
+ +
+
+Figure 3. Unlink folder confirmation window
+This should resolve the error and migrate your library project to the new +ADT environment.
+ +This topic explains how create and run tests of Android applications in Eclipse with ADT. - Before you read this topic, you should read about how to create a Android application with the + Before you read this topic, you should read about how to create an Android application with the basic processes for creating and running applications with ADT, as described in - Developing In Eclipse, with ADT. + Creating and Managing Projects in Eclipse + and Building and Running Apps in Eclipse. You may also want to read Testing Fundamentals, which provides an overview of the Android testing framework. diff --git a/docs/html/guide/developing/testing/testing_otheride.jd b/docs/html/guide/developing/testing/testing_otheride.jd index adb0efac8a37f..48fa032c69cef 100644 --- a/docs/html/guide/developing/testing/testing_otheride.jd +++ b/docs/html/guide/developing/testing/testing_otheride.jd @@ -133,7 +133,7 @@ android create test-project -m <main_path> -n <project_name> -p < This creates a new test project with the appropriate directories and build files. The directory structure and build file contents are identical to those in a regular Android application project. They are described in detail in the topic - Developing In Other IDEs. + Creating and Managing Projects.
The operation also creates an AndroidManifest.xml file with instrumentation
diff --git a/docs/html/guide/guide_toc.cs b/docs/html/guide/guide_toc.cs
index 401337a818d44..a984acd18d396 100644
--- a/docs/html/guide/guide_toc.cs
+++ b/docs/html/guide/guide_toc.cs
@@ -311,7 +311,7 @@
debug option with the ant comm
compile your app, the build script generates a keystore/key and signs the .apk for you.
The script then also aligns the .apk with the zipalign tool.
No other action on your part is needed. Read
-Developing In Other IDEs: Building
-in debug mode for more information.
+Building and Running Apps
+on the Command Line for more information.
<your_project_name>-release.apk. With these steps
automated for you, you're able to skip the manual procedures below (steps 3 and 4).
To learn how to specify your keystore and alias in the {@code build.properties} file,
-see Developing In Other
-IDEs: Building in release mode.
+see
+Building and Running Apps on the Command Line.
diff --git a/docs/html/guide/publishing/licensing.jd b/docs/html/guide/publishing/licensing.jd
index 40439f0c382e2..e099413e23d83 100644
--- a/docs/html/guide/publishing/licensing.jd
+++ b/docs/html/guide/publishing/licensing.jd
@@ -518,7 +518,7 @@ Android Virtual Devices.If you are not familiar with AVDs or how to use them, see Android Virtual Devices.
+href="{@docRoot}guide/developing/devices/index.html">Creating and Managing Virtual Devices.If you aren't familiar with library projects or how -to use them, read more in Developing in -Eclipse with ADT or Developing in -Other IDEs, as appropriate for your environment.
- +to use them, see +Creating and Managing Projects. + @@ -669,9 +666,8 @@ predefined as a library project in itsdefault.properties file, so
no further configuration is needed.
For more information about how to create an application project or work with -library projects in Eclipse, see Developing -in Eclipse with ADT.
+library projects in Eclipse, see +Creating and Managing Projects in Eclipse.Next, open the application's project properties window, as shown below. Select the "Android" properties group and click Add, then choose the LVL library project (com_android_vending_licensing) and click -OK. For more information, see -Developing -in Eclipse with ADT
+OK. For more information, see + +Creating and Managing Projects in Eclipse.For more information about working with library projects, see Developing -in Eclipse with ADT or Developing in -Other IDEs, as appropriate for your environment.
+For more information about working with library projects, +see +Creating and Managing Projects on the Command Line
.If you're not using Eclipse, that's okay. Familiarize yourself with -Developing in Other IDEs. -You can then return to this tutorial and ignore anything about Eclipse.
+If you are not using Eclipse, the tools provided by the Android SDK are accessible +on the command line, so you can choose your IDE or text editor. +For more information about developing with the Android SDK tools, see +the Overview +section for developing on Android.
Before you start, you should already have the very latest SDK installed, and if you're using Eclipse, you should have installed the ADT plugin as well. If you have not installed these, see @@ -562,5 +564,6 @@ android create project \
This creates the required folders and files for the project at the location defined by the path.
-For more information on how to use the SDK tools to create and build projects, please read -Developing in Other IDEs.
+For more information on how to use the SDK tools to create and build projects on the command line, read +Creating and Managing Projects on the Command Line and +Building and Running Apps on the Command Line.
diff --git a/docs/html/resources/articles/backward-compatibility.jd b/docs/html/resources/articles/backward-compatibility.jd index 4b1a34c7d7607..ad64dfcb6d99b 100644 --- a/docs/html/resources/articles/backward-compatibility.jd +++ b/docs/html/resources/articles/backward-compatibility.jd @@ -245,6 +245,6 @@ emulator that uses an older version of the platform. The Android SDK allows you to do this easily by creating "Android Virtual Devices" with different API levels. Once you create the AVDs, you can test your application with old and new versions of the system, perhaps running them side-by-side to see the -differences. More information about emulator AVDs can be found in the AVD documentation and +differences. More information about emulator AVDs can be found in Creating and Managing Virtual Devices and fromemulator -help-virtual-device.
\ No newline at end of file
diff --git a/docs/html/resources/articles/layout-tricks-merge.jd b/docs/html/resources/articles/layout-tricks-merge.jd
index 00e0479855721..95409e487e981 100644
--- a/docs/html/resources/articles/layout-tricks-merge.jd
+++ b/docs/html/resources/articles/layout-tricks-merge.jd
@@ -44,7 +44,7 @@ used to stack a {@link android.widget.TextView} on top of an

Things get more interesting when you inspect the result with HierarchyViewer.
+href="{@docRoot}guide/developing/debugging/debugging-ui.html#hierarchyViewer">HierarchyViewer.
If you look closely at the resulting tree, you will notice that the
FrameLayout defined in our XML file (highlighted in blue below) is
the sole child of another FrameLayout:
Here are some tips and tricks for common Android errors. Don't forget to use the - ddms logcat capability to get a deeper view when errors occur. See Debugging for more debugging tips.
+ ddms logcat capability to get a deeper view when errors occur. + See the Debugging documentation for more information.If you get an error message such as "Could not load /sdcard/gestures.
Make sure you have a mounted SD card," be sure that your target AVD has an
-SD card. To create an AVD that has an SD card, use the
--c
-option in the android create avd command.
In this tutorial, you will use the Android emulator to run applications. The emulator needs an Android Virtual Device (AVD) with an API level equal to or higher than the one you set for the projects in the previous step. - To find out how to check this and create the right AVD if necessary, see Creating an AVD. + To find out how to check this and create the right AVD if necessary, + see Creating an AVD.
As a test of the AVD and emulator, run the SpinnerActivity application in Eclipse with ADT. When it starts, @@ -1237,7 +1238,7 @@ import android.widget.SpinnerAdapter; also use this tool to run the test application from the command line.
diff --git a/docs/html/sdk/eclipse-adt.jd b/docs/html/sdk/eclipse-adt.jd
index 0d1ea0c8c11dd..d0fa7277224b9 100644
--- a/docs/html/sdk/eclipse-adt.jd
+++ b/docs/html/sdk/eclipse-adt.jd
@@ -225,7 +225,7 @@ called src/. There is now support for any number of source folders,
with no name restriction. They can even be in subfolder such as
src/java. If you are already working with library projects created
in ADT 0.9.7, see Migrating
+href="{@docRoot}guide/developing/projects/index.html#libraryMigrating">Migrating
library projects to ADT 0.9.8 for important information about moving
to the new ADT environment.
If you are not developing in Eclipse, SDK Tools r6 provides the equivalent library project support through the Ant build system.
diff --git a/docs/html/sdk/installing.jd b/docs/html/sdk/installing.jd index 9de247aceb108..e8d97e74d1a66 100644 --- a/docs/html/sdk/installing.jd +++ b/docs/html/sdk/installing.jd @@ -148,8 +148,9 @@ 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 developer guide has more information about Developing in Other IDEs.
+debug your application. The Overview +section of the developer guide outlines the major steps that you need to complete +when developing in Eclipse or other IDEs. @@ -547,9 +548,9 @@ first step in getting started with Android development.<ndk>/apps/<app_name>/project/. Then, set up an AVD,
- if necessary, and build/run the application in the emulator. For more information about
- creating a new Android project in Eclipse, see Developing in Eclipse.android tool to create the build file
for each of the sample projects at <ndk>/apps/<app_name>/project/.
Then set up an AVD, if necessary, build your project in the usual way, and run it in the
- emulator. For more information, see Developing in Other IDEs.For more information about developing with the Android SDK tools and what + you need to do to create, build, and run your applications, see + the Overview + section for developing on Android.
If you are developing in Eclipse, ADT 0.9.7 +href="{@docRoot}guide/developing/projects/index.html#LibraryProjects">Creating and Managing Projects document.
+If you are developing in Eclipse, ADT provides the equivalent library project support.