Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c74a69a8 authored by Robert Ly's avatar Robert Ly
Browse files

Doc Change: Fixing broken links and miscellaneous text revisions to support link fixing

Change-Id: I192595a3c7af520bf8598e80ae25d0dea289fcbd
parent ec5ca94c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
page.title=Building and Running Apps in Other IDEs
page.title=Building and Running Apps on the Command Line
@jd:body

 <div id="qv-wrapper">
+6 −2
Original line number Diff line number Diff line
@@ -6,7 +6,11 @@ page.title=Creating and Managing AVDs with AVD Manager
      <h2>In this document</h2>

      <ol>
        <li><a href="#AVDEclipse">Creating an AVD</a></li>
        <li><a href="#createavd">Creating an AVD</a>
          <ol>
            <li><a href="#hardwareopts">Hardware options</a></li>
          </ol>
        </li>        
      </ol>
    </div>
  </div>
@@ -25,7 +29,7 @@ page.title=Creating and Managing AVDs with AVD Manager
  of each AVD. </p>

  
  <h2>Creating an AVD</h2>
  <h2 id="createavd">Creating an AVD</h2>

  <p>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.</p>
+10 −9
Original line number Diff line number Diff line
@@ -23,32 +23,33 @@ page.title=Overview
      before continuing.</p>
    </li>

    <li>
      <a href="{@docRoot}guide/developing/devices/avds-devices.html">Set up Android Virtual Devices
      or hardware devices</a>.
    <li>Set up Android Virtual Devices or hardware devices</a>.

      <p>You need to create Android Virtual Devices (AVD) or connect hardware devices on which
      you will install your applications.</p>
      
      <p>See <a href="{@docRoot}guide/developing/devices/index.html">Creating and Managing Virtual Devices</a>
      and <a href="{@docRoot}guide/developing/device.html">Connecting Hardware Devices</a> for more information.
    </li>

    <li>
      <a href="{@docRoot}guide/developing/projects/projects.html">Create an Android project</a>.
      <a href="{@docRoot}guide/developing/projects/index.html">Create an Android project</a>.

      <p>An Android project contains all source code and resource files for your application. It is
      built into an <code>.apk</code> package that you can install on Android devices.</p>
    </li>

    <li>
      <a href="{@docRoot}guide/developing/building/building.html">Build and run your
      <a href="{@docRoot}guide/developing/building/index.html">Build and run your
      application</a>.

      <p>If you are using Eclipse, builds are generated each time you save changes and you can install
      your application on a device by clicking <strong>Run</strong>. If you're using another IDE, you can build your
      project using Ant and install it on a device using ADB.</p>
      project using Ant and install it on a device using <code>adb</code>.</p>
    </li>

    <li>
      <a href="{@docRoot}guide/developing/debugging/debugging.html">Debug your application with the
      <a href="{@docRoot}guide/developing/debugging/index.html">Debug your application with the
      SDK debugging and logging tools</a>.

      <p>Debugging your application involves using a JDWP-compliant debugger along with the
@@ -110,6 +111,6 @@ page.title=Overview
  Eclipse, such as the <code>adb</code> 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.</p>
  
  <p>For more information on these tools, see the <a href="@{docRoot}guide/developing/tools/index.html">
  Tools</a> section of the documentation.</p>
  <p>For more information on the tools provided with the Android SDK, see the
  <a href="{@docRoot}guide/developing/tools/index.html">Tools</a> section of the documentation.</p>
+80 −1
Original line number Diff line number Diff line
@@ -8,7 +8,11 @@ page.title=Creating and Managing Projects
      <ol>
        <li><a href="#ApplicationProjects">Android Projects</a></li>

        <li><a href="#LibraryProjects">Library Projects</a></li>
        <li><a href="#LibraryProjects">Library Projects</a>
          <ol>
            <li><a href="#libraryMigrating">Migrating library projects to ADT 0.9.8 or higher</a></li>
          </ol>
        </li>

        <li><a href="#TestProjects">Test Projects</a></li>
      </ol>
@@ -419,6 +423,81 @@ page.title=Creating and Managing Projects
  </ul>
  
  
  
  <h3 id="libraryMigrating">Migrating library projects to ADT 0.9.8 or higher</h3> 
 
<p>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). </p> 
 
<p>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 <code>src/</code> 
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:</p> 
 
<ul> 
<li>The library was only able to contain a single source folder (excluding the
special <code>gen/</code> source folder), and</li> 
<li>The source folder was required to have the name <code>src/</code> and be
stored at the root of the project.</li> 
</ul> 
 
<p>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 <code>src/java/</code> directory. In order
to support this, the name of the linked source folders in the main project are
now called &lt;library-name&gt;_&lt;folder-name&gt; For
example: <code>MyLibrary_src/</code> or <code>MyLibrary_src_java/</code>.</p> 
 
<p>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.</p> 
 
<p>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.</p> 
 
<p>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, <code>MyLibrary</code> and
<code>MyLibrary_src</code> &mdash; both of which link to
<code>MyLibrary/src</code>. Eclipse shows an error on one of them because they
are duplicate links to a single class.</p> 
 
<img src="/images/developing/lib-migration-0.png" alt=""> 
<p class="img-caption"><strong>Figure 1.</strong> Library project migration error</p>
<p>To fix the error, remove the linked folder that <em>does not</em> contain the
<code>_src</code> suffix. </p> 
 
<ol> 
<li>Right click the folder that you want to remove (in this case, the
<code>MyLibrary</code> folder) and choose <strong>Build Path</strong> &gt;
<strong>Remove from Build Path</strong>, as shown in figure 2.</li> 
 
<img src="/images/developing/lib-migration-1.png" style="height:600px"
alt=""> 
<p class="img-caption"><strong>Figure 2.</strong> Remove from Build Path menu item</p>
 
<li>Next, when asked about unlinking the folder from the project, select
<strong>Yes</strong>, as shown in figure 3.</li> 
 
<img src="/images/developing/lib-migration-2.png" alt=""> 

<p class="img-caption"><strong>Figure 3.</strong> Unlink folder confirmation window</p>
</ol> 
 
<p>This should resolve the error and migrate your library project to the new
ADT environment. </p> 
 
  

  <h2 id="TestProjects">Test Projects</h2>

  <p>Test projects contain Android applications that you write using the 
+3 −2
Original line number Diff line number Diff line
@@ -12,9 +12,10 @@ page.title=Testing In Eclipse, with ADT
</div>
<p>
    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
    <a href="{@docRoot}guide/developing/eclipse-adt.html">Developing In Eclipse, with ADT</a>.
    <a href="{@docRoot}guide/developing/projects/projects-eclipse.html">Creating and Managing Projects in Eclipse</a>
    and <a href="guide/developing/building/building-eclipse.html">Building and Running Apps in Eclipse</a>.
    You may also want to read
    <a href="{@docRoot}guide/topics/testing/testing_android.html">Testing Fundamentals</a>,
    which provides an overview of the Android testing framework.
Loading