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 879986c..f19f97e 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 1daf738..45fd5a1 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.
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.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 adb0efa..48fa032 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 401337a..a984acd 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 40439f0..e099413 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.
-- cgit v1.1