am 6e8d6bd0: Merge "docs: Update various SDK docs for GB platform and tools" into gingerbread

* commit '6e8d6bd09facabcc0f868960e6453b8f79cd9136':
  docs: Update various SDK docs for GB  platform and tools
This commit is contained in:
Scott Main
2010-10-29 15:37:17 -07:00
committed by Android Git Automerger
3 changed files with 147 additions and 127 deletions

View File

@@ -6,7 +6,7 @@ page.title=Adding SDK Components
<div id="qv"> <div id="qv">
<h2>Quickview</h2> <h2>Quickview</h2>
<ul> <ul>
<li>Use the Android SDK and AVD Manager to <li>Use the Android SDK and AVD Manager to
set up your SDK and keep it up-to-date.</li> set up your SDK and keep it up-to-date.</li>
</ul> </ul>
@@ -25,7 +25,7 @@ page.title=Adding SDK Components
<p>Adding and updating components in your Android SDK is fast and easy. To <p>Adding and updating components in your Android SDK is fast and easy. To
perform an update, use the <strong>Android SDK and AVD Manager</strong> to perform an update, use the <strong>Android SDK and AVD Manager</strong> to
install or update the individual SDK components that you need. The Android SDK install or update the individual SDK components that you need. The Android SDK
and AVD Manager tool is included in the <a href="index.html">Android SDK and AVD Manager tool is included in the <a href="index.html">Android SDK
download</a>.</p> download</a>.</p>
<p>It only takes a couple of clicks to install individual versions of the <p>It only takes a couple of clicks to install individual versions of the
@@ -53,19 +53,19 @@ a new version of the platform. See the revisions listed in the <a
href="{@docRoot}sdk/tools-notes.html">SDK Tools</a> document for ADT href="{@docRoot}sdk/tools-notes.html">SDK Tools</a> document for ADT
Plugin compatibility.</p> Plugin compatibility.</p>
<div style="TEXT-ALIGN:left; width:600px;"> <div style="TEXT-ALIGN:left; width:600px;">
<img src="{@docRoot}images/sdk_manager_packages.png" <img src="{@docRoot}images/sdk_manager_packages.png"
style="padding-bottom:0;margin-bottom:0;" /> style="padding-bottom:0;margin-bottom:0;" />
<p class="caption" style="margin:0 0 1.5em 1em;padding:0 0 0 <p class="caption" style="margin:0 0 1.5em 1em;padding:0 0 0
1em;"><strong>Figure 1.</strong> The Android SDK and AVD Manager's 1em;"><strong>Figure 1.</strong> The Android SDK and AVD Manager's
<strong>Available Packages</strong> <strong>Available Packages</strong>
panel, which shows the SDK components that are panel, which shows the SDK components that are
available for you to download into your environment. </p> available for you to download into your environment. </p>
</div> </div>
<h2 id="launching">Launching the Android SDK and AVD Manager</h2> <h2 id="launching">Launching the Android SDK and AVD Manager</h2>
<p>The Android SDK and AVD Manager is the tool that you use to install and <p>The Android SDK and AVD Manager is the tool that you use to install and
upgrade SDK components in your development environment. </p> upgrade SDK components in your development environment. </p>
<p>You can access the tool in any of three ways:</p> <p>You can access the tool in any of three ways:</p>
@@ -83,15 +83,15 @@ follow these steps to access the Android SDK and AVD Manager tool:</p>
<ol> <ol>
<li>Open Eclipse</li> <li>Open Eclipse</li>
<li>Select <strong>Window</strong> &gt; <strong>Android SDK and AVD <li>Select <strong>Window</strong> &gt; <strong>Android SDK and AVD
Manager</strong>.</li> Manager</strong>.</li>
</ol> </ol>
<h4>Launching from the setup script (Windows only)</h4> <h4>Launching from the SDK Manager script (Windows only)</h4>
<p>For Windows only, the SDK includes a script that invokes the Android SDK and <p>For Windows only, the SDK includes a script that invokes the Android SDK and
AVD Manager. To launch the tool using the script, double-click "SDK AVD Manager. To launch the tool using the script, double-click {@code SDK
Setup.exe" at the root of the the SDK directory.</p> Manager.exe} at the root of the the SDK directory.</p>
<h4>Launching from a command line</h4> <h4>Launching from a command line</h4>
@@ -100,37 +100,39 @@ and AVD Manager tool from the command line: </p>
<ol> <ol>
<li>Navigate to the <code>&lt;<em>sdk</em>&gt;/tools/</code> directory.</li> <li>Navigate to the <code>&lt;<em>sdk</em>&gt;/tools/</code> directory.</li>
<li>Execute the {@code android} tool command with no options. <li>Execute the {@code android} tool command with no options.
<pre style="width:400px">$ android</pre></li> <pre style="width:400px">$ android</pre></li>
</ol> </ol>
<h2 id="InstallingComponents">Installing SDK Components</h2> <h2 id="InstallingComponents">Installing SDK Components</h2>
<p class="caution"><strong>Important:</strong> Before you install SDK components, <p class="caution"><strong>Caution:</strong> Before you install SDK components,
we recommend that you disable any antivirus programs that may be running on we recommend that you disable any antivirus software that may be running on
your computer.</p> your computer. There are cases in which antivirus software on Windows is known to interfere with the
installation process, so we suggest you disable your antivirus until installation is
complete.</p>
<p>Follow these steps to install new SDK components in your environment:</p> <p>Follow these steps to install new SDK components in your environment:</p>
<ol> <ol>
<li>Launch the Android SDK and AVD Manager as described in the section above.</li> <li>Launch the Android SDK and AVD Manager as described in the section above.</li>
<li>Select <strong>Available Packages</strong> in the left panel. <li>Select <strong>Available Packages</strong> in the left panel.
This will reveal all of the components that are currently available for download This will reveal all of the components that are currently available for download
from the SDK repository.</li> from the SDK repository.</li>
<li>Select the component(s) you'd like to install and click <strong>Install <li>Select the component(s) you'd like to install and click <strong>Install
Selected</strong>. If you aren't sure which packages to select, read <a Selected</strong>. If you aren't sure which packages to select, read <a
href="installing.html#which">Which components do I need?</a>.</li> href="installing.html#which">Which components do I need?</a>.</li>
<li>Verify and accept the components you want and click <strong>Install <li>Verify and accept the components you want and click <strong>Install
Accepted</strong>. The components will now be installed into your existing Accepted</strong>. The components will now be installed into your existing
Android SDK directories.</li> Android SDK directories.</li>
</ol> </ol>
<p>New platforms are automatically saved into the <p>New platforms are automatically saved into the
<code>&lt;<em>sdk</em>&gt;/platforms/</code> directory of your SDK; <code>&lt;<em>sdk</em>&gt;/platforms/</code> directory of your SDK;
new add-ons are saved in the <code>&lt;<em>sdk</em>&gt;/add-ons/</code> new add-ons are saved in the <code>&lt;<em>sdk</em>&gt;/add-ons/</code>
directory; samples are saved in the directory; samples are saved in the
<code>&lt;<em>sdk</em>&gt;/samples/android-&lt;<em>level</em>&gt;/</code>; <code>&lt;<em>sdk</em>&gt;/samples/android-&lt;<em>level</em>&gt;/</code>;
and new documentation is saved in the existing and new documentation is saved in the existing
<code>&lt;<em>sdk</em>&gt;/docs/</code> directory (old docs are replaced).</p> <code>&lt;<em>sdk</em>&gt;/docs/</code> directory (old docs are replaced).</p>
@@ -184,10 +186,10 @@ if there is dependency that you need to address. </p>
<h2 id="AddingSites">Adding New Sites</h2> <h2 id="AddingSites">Adding New Sites</h2>
<p>By default, <strong>Available Packages</strong> only shows the default <p>By default, <strong>Available Packages</strong> only shows the default
repository site, which offers platforms, SDK tools, documentation, the repository site, which offers platforms, SDK tools, documentation, the
Google APIs Add-on, and other components. You can add other sites that host Google APIs Add-on, and other components. You can add other sites that host
their own Android SDK add-ons, then download the SDK add-ons their own Android SDK add-ons, then download the SDK add-ons
from those sites.</p> from those sites.</p>
<p>For example, a mobile carrier or device manufacturer might offer additional <p>For example, a mobile carrier or device manufacturer might offer additional
API libraries that are supported by their own Android-powered devices. In order API libraries that are supported by their own Android-powered devices. In order
@@ -199,7 +201,7 @@ Manager:</p>
<ol> <ol>
<li>Select <strong>Available Packages</strong> in the left panel.</li> <li>Select <strong>Available Packages</strong> in the left panel.</li>
<li>Click <strong>Add Site</strong> and enter the URL of the <li>Click <strong>Add Site</strong> and enter the URL of the
{@code repository.xml} file. Click <strong>OK</strong>.</li> {@code repository.xml} file. Click <strong>OK</strong>.</li>
</ol> </ol>
<p>Any SDK components available from the site will now be listed under <p>Any SDK components available from the site will now be listed under

View File

@@ -1,27 +1,27 @@
page.title=Android SDK page.title=Android SDK
sdk.redirect=0 sdk.redirect=0
sdk.win_download=android-sdk_r07-windows.zip sdk.win_installer=installer_r08-windows.exe
sdk.win_bytes=23669664 sdk.win_installer_bytes=TODO
sdk.win_checksum=69c40c2d2e408b623156934f9ae574f0 sdk.win_installer_checksum=TODO
sdk.mac_download=android-sdk_r07-mac_x86.zip sdk.win_download=android-sdk_r08-windows.zip
sdk.mac_bytes=19229546 sdk.win_bytes=TODO
sdk.mac_checksum=0f330ed3ebb36786faf6dc72b8acf819 sdk.win_checksum=TODO
sdk.linux_download=android-sdk_r07-linux_x86.tgz sdk.mac_download=android-sdk_r08-mac_x86.zip
sdk.linux_bytes=17114517 sdk.mac_bytes=TODO
sdk.linux_checksum=e10c75da3d1aa147ddd4a5c58bfc3646 sdk.mac_checksum=TODO
sdk.linux_download=android-sdk_r08-linux_x86.tgz
sdk.linux_bytes=TODO
sdk.linux_checksum=TODO
@jd:body @jd:body
<h2 id="quickstart">Quick Start</h2> <h2 id="quickstart">Quick Start</h2>
<p>The steps below provide an overview of how to get started with the Android
SDK. For detailed instructions, start with the <a
href="{@docRoot}sdk/installing.html">Installing the SDK</a> guide. </p>
<p><strong>1. Prepare your development computer</strong></p> <p><strong>1. Prepare your development computer</strong></p>
<p>Read the <a href="{@docRoot}sdk/requirements.html">System Requirements</a> <p>Read the <a href="{@docRoot}sdk/requirements.html">System Requirements</a>
@@ -34,38 +34,37 @@ install the <a href="http://java.sun.com/javase/downloads/index.jsp">JDK</a>
<p><strong>2. Download and install the SDK starter package</strong></p> <p><strong>2. Download and install the SDK starter package</strong></p>
<p>Select a starter package from the table at the top of this page and download <p>Download a starter package from the table above onto your development computer.
it to your development computer. To install the SDK, simply unpack the starter If you're using Windows, we recommend that you download the installer (the {@code .exe} file),
package to a safe location and then add the location to your PATH. </p> which will launch a Wizard to guide you through the installation and check your computer for
required software. Otherwise, download the SDK starter package ({@code .zip} or {@code .tgz})
appropriate for your system, unpack it to a safe location, then add the location to your PATH
environment variable. </p>
<p><strong>3. Install the ADT Plugin for Eclipse</strong></p> <p><strong>3. Install the ADT Plugin for Eclipse</strong></p>
<p>If you are developing in Eclipse, set up a remote update site at <p>If you are developing in Eclipse, add a new remote update site with the URL
<code>https://dl-ssl.google.com/android/eclipse/</code>. Install the Android <code>https://dl-ssl.google.com/android/eclipse/</code>. Install the Android
Development Tools (ADT) Plugin, restart Eclipse, and set the "Android" Development Tools (ADT) Plugin from that site, restart Eclipse, and set the "Android"
preferences in Eclipse to point to the SDK install location. For detailed preferences in Eclipse to point to the Android SDK directory (installed in the previous step). For
instructions, see <a href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin detailed instructions to setup Eclipse, see <a href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin
for Eclipse</a>.</p> for Eclipse</a>.</p>
<p><strong>4. Add Android platforms and other components to your SDK</strong></p> <p><strong>4. Add Android platforms and other components to your SDK</strong></p>
<p>Use the Android SDK and AVD Manager, included in the SDK starter package, to <p>Launch the <em>Android SDK and AVD Manager</em> by executing {@code SDK Manager.exe} (Windows) or
add one or more Android platforms (for example, Android 1.6 or Android 2.2) and {@code android} (Mac/Linux) from the SDK's {@code tools/} directory (if you used the Windows
other components to your SDK. If you aren't sure what to add, see <a installer, this is launched for you when the Wizard is complete). Add some Android platforms
(such as Android 1.6 and Android 2.3) and other components (such as documentation) to your SDK. If
you aren't sure what to add, see <a
href="installing.html#which">Which components do I need?</a></p> href="installing.html#which">Which components do I need?</a></p>
<p>To launch the Android SDK and AVD Manager on Windows, execute <code>SDK
Setup.exe</code>, at the root of the SDK directory. On Mac OS X or Linux,
execute the <code>android</code> tool in the <code>&lt;sdk&gt;/tools/</code>
folder. For detailed instructions, see <a
href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a>.</p>
<p><strong>Done!</strong></p> <p><strong>Done!</strong></p>
<p>If you are new to Android, you can use the <a <p>To write your first Android application, see the <a
href="{@docRoot}resources/tutorials/hello-world.html">Hello World</a> tutorial to href="{@docRoot}resources/tutorials/hello-world.html">Hello World</a> tutorial. Also see <a
get started quickly. <a href="{@docRoot}sdk/installing.html#NextSteps">Next href="{@docRoot}sdk/installing.html#NextSteps">Next
Steps</a> offers other suggestions of how to begin.</p> Steps</a> for other suggestions about how to get started.</p>
<p>For a more detailed guide to installing and setting up the SDK, read <a <p>For a more detailed guide to installing and setting up the SDK, read <a
href="installing.html">Installing the SDK</a>.</p> href="installing.html">Installing the SDK</a>.</p>

View File

@@ -29,20 +29,20 @@ sdk.preview=0
</div> </div>
</div> </div>
<p>This page describes how to install the Android SDK <p>This page describes how to install the Android SDK
and set up your development environment for the first time.</p> and set up your development environment for the first time.</p>
<p>If you encounter any problems during installation, see the <p>If you encounter any problems during installation, see the
<a href="#troubleshooting">Troubleshooting</a> section at the bottom of <a href="#troubleshooting">Troubleshooting</a> section at the bottom of
this page.</p> this page.</p>
<h4>Updating?</h4> <h4>Updating?</h4>
<p>If you are currently using the Android 1.6 SDK or later and want to update <p>If you are currently using the Android 1.6 SDK or later and want to update
to the latest tools or platforms, you do not need to install a new SDK. Instead, to the latest tools or platforms, you do not need to install a new SDK. Instead,
you can simply update the individual components in your SDK using the you can simply update the individual components in your SDK using the
Android SDK and AVD Manager tool. For information about how to do that, see <a Android SDK and AVD Manager tool. For information about how to do that, see <a
href="{@docRoot}sdk/adding-components.html#UpdatingComponents">Updating SDK href="{@docRoot}sdk/adding-components.html#UpdatingComponents">Updating SDK
Components</a></p> Components</a></p>
<p>If you are using Android 1.5 SDK or earlier, you should install a new SDK as <p>If you are using Android 1.5 SDK or earlier, you should install a new SDK as
@@ -54,65 +54,71 @@ SDK environment. </p>
<p>Before getting started with the Android SDK, take a moment to confirm that <p>Before getting started with the Android SDK, take a moment to confirm that
your development computer meets the <a href="requirements.html">System your development computer meets the <a href="requirements.html">System
Requirements</a>. In particular, you may need to install the <a Requirements</a>. In particular, you may need to install the <a
href="http://java.sun.com/javase/downloads/index.jsp">JDK</a> before href="http://java.sun.com/javase/downloads/index.jsp">JDK</a> before
continuing, if it's not already installed on your computer. </p> continuing, if it's not already installed on your computer. </p>
<p>If you will be developing in Eclipse with the Android Development <p>If you will be developing in Eclipse with the Android Development
Tools (ADT) Plugin &mdash; the recommended path if you are new to Tools (ADT) Plugin &mdash; the recommended path if you are new to
Android &mdash; make sure that you have a suitable version of Eclipse Android &mdash; make sure that you have a suitable version of Eclipse
installed on your computer (3.4 or newer is recommended). If you need installed on your computer (3.4 or newer is recommended). If you need
to install Eclipse, you can download it from this location: </p> to install Eclipse, you can download it from this location: </p>
<p style="margin-left:2em;"><a href= <p style="margin-left:2em;"><a href=
"http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a></p> "http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a></p>
<p>A Java or RCP version of Eclipse is recommended. For Eclipse 3.5, the <p>A Java or RCP version of Eclipse is recommended. For Eclipse 3.5, the
"Eclipse Classic" version is recommended.</p> "Eclipse Classic" version is recommended.</p>
<h2 id="Installing">Step 2. Downloading the SDK Starter Package</h2> <h2 id="Installing">Step 2. Downloading the SDK Starter Package</h2>
<p>The first step in setting up your environment for developing Android applications <p>The first step in setting up your environment for developing Android applications
is downloading the Android SDK starter package. The starter package is not a full is downloading the Android SDK starter package. The starter package is not a full
development environment &mdash; it includes only the core SDK Tools, which you can development environment &mdash; it includes only the core SDK Tools, which you can
use to download the rest of the SDK components. </p> use to download the rest of the SDK components (such as the platform system images). </p>
<p>You can get the latest version of the SDK starter package from the <a <p>You can get the latest version of the SDK starter package from the <a
href="{@docRoot}sdk/index.html">SDK download page</a>. Make sure to download the href="{@docRoot}sdk/index.html">SDK download page</a>. Make sure to download the
package that is appropriate for your development computer.</p> package that is appropriate for your development computer.</p>
<p>After downloading, unpack the Android SDK archive to a safe location on your <p class="note"><strong>Note:</strong> If you're using Windows, we recommend that you download
machine. By default, the SDK files are unpacked into a directory named the SDK installer (the {@code .exe} file from the download table). It will guide you through the
<code>android-sdk-&lt;machine-platform&gt;</code>. Make a note of the name and installation process and check your computer for the required software.</p>
location of the unpacked SDK directory on your system &mdash; you will need to
refer to the SDK directory later, when setting up the ADT plugin or when using
the SDK tools.</p>
<p>Optionally, you may want to add the location of the SDK's primary <p>If you downloaded a {@code .zip} of {@code .tgz} (instead of using the SDK installer), unpack the
<code>tools</code> directory to your system <code>PATH</code>. The primary Android SDK archive to a safe location on your machine. By default, the SDK files are unpacked into
<code>tools/</code> directory is located at the root of the SDK folder. Adding a directory named <code>android-sdk-&lt;machine-platform&gt;</code>.</p>
<code>tools</code> to your path lets you run Android Debug Bridge (adb) and the
other command line <a <p>Make a note of the name and
location of the unpacked SDK directory on your system &mdash; you will need to
refer to the SDK directory later, when setting up the ADT plugin and when using
the SDK tools from command line.</p>
<p>Optionally, you might want to add the location of the SDK's primary
<code>tools</code> directory and the additional {@code platform-tools/} directory to your system
<code>PATH</code>. Both tool directories are located at the root of the SDK folder. Adding
<code>tools/</code> and {@code platform-tools/} to your path lets you run Android Debug Bridge (adb)
and the other command line <a
href="{@docRoot}guide/developing/tools/index.html">tools</a> without needing to href="{@docRoot}guide/developing/tools/index.html">tools</a> without needing to
supply the full path to the tools directory. </p> supply the full path to the tool directories. </p>
<ul> <ul>
<li>On Linux, edit your <code>~/.bash_profile</code> or <code>~/.bashrc</code> file. Look <li>On Linux, edit your <code>~/.bash_profile</code> or <code>~/.bashrc</code> file. Look
for a line that sets the PATH environment variable and add the for a line that sets the PATH environment variable and add the
full path to the <code>tools/</code> directory to it. If you don't full path to the <code>tools/</code> and {@code platform-tools/} directories to it. If you don't
see a line setting the path, you can add one:</li> see a line setting the path, you can add one:</li>
<ul><code>export PATH=${PATH}:<em>&lt;your_sdk_dir&gt;</em>/tools</code></ul> <ul><code>export PATH=${PATH}:&lt;your_sdk_dir&gt;/tools:&lt;your_sdk_dir&gt;/platform-tools</code></ul>
<li>On a Mac OS X, look in your home directory for <code>.bash_profile</code> and <li>On a Mac OS X, look in your home directory for <code>.bash_profile</code> and
proceed as for Linux. You can create the <code>.bash_profile</code> if proceed as for Linux. You can create the <code>.bash_profile</code> if
you haven't already set one up on your machine. </li> you haven't already set one up on your machine. </li>
<li>On Windows, right-click on My Computer, and select Properties. <li>On Windows, right-click on My Computer, and select Properties.
Under the Advanced tab, hit the Environment Variables button, and in the Under the Advanced tab, hit the Environment Variables button, and in the
dialog that comes up, double-click on Path (under System Variables). Add the full path to the dialog that comes up, double-click on Path (under System Variables). Add the full path to the
<code>tools/</code> directory to the path. </li> <code>tools/</code> and {@code platform-tools/} directories to the path. </li>
</ul> </ul>
<p>If you will be using the Eclipse IDE as your development environment, the <p>If you will be using the Eclipse IDE as your development environment, the
@@ -203,11 +209,11 @@ access to powerful mapping capabilities through the
<code>com.google.android.maps</code> library. You can also add additional <code>com.google.android.maps</code> library. You can also add additional
repositories, so that you can download other SDK add-ons, where available. </li> repositories, so that you can download other SDK add-ons, where available. </li>
<li><strong>USB Driver for Windows</strong> &mdash; Contains driver files <li><strong>USB Driver for Windows</strong> &mdash; Contains driver files
that you can install on your Windows computer, so that you can run and debug that you can install on your Windows computer, so that you can run and debug
your applications on an actual device. You <em>do not</em> need the USB driver unless your applications on an actual device. You <em>do not</em> need the USB driver unless
you plan to debug your application on an actual Android-powered device. If you you plan to debug your application on an actual Android-powered device. If you
develop on Mac OS X or Linux, you do not need a special driver to debug develop on Mac OS X or Linux, you do not need a special driver to debug
your application on an Android-powered device.</li> your application on an Android-powered device.</li>
<li><strong>Samples</strong> &mdash; Contains the sample code and apps available <li><strong>Samples</strong> &mdash; Contains the sample code and apps available
@@ -226,15 +232,15 @@ Manager, shown in Figure 1, to browse the SDK repository, select new or updated
components for download, and then install the selected components in your SDK components for download, and then install the selected components in your SDK
environment. </p> environment. </p>
<div style="TEXT-ALIGN:left;width:600px;"> <div style="TEXT-ALIGN:left;width:600px;">
<img src="/images/sdk_manager_packages.png" <img src="/images/sdk_manager_packages.png"
style="padding-bottom:0;margin-bottom:0;" /> style="padding-bottom:0;margin-bottom:0;" />
<p class="caption" style="margin:0 0 1.5em 1em;padding:0 0 0 <p class="caption" style="margin:0 0 1.5em 1em;padding:0 0 0
1em;"><strong>Figure 1.</strong> The Android SDK and AVD Manager's 1em;"><strong>Figure 1.</strong> The Android SDK and AVD Manager's
<strong>Available Packages</strong> <strong>Available Packages</strong>
panel, which shows the SDK components that are panel, which shows the SDK components that are
available for you to download into your environment. </p> available for you to download into your environment. </p>
</div> </div>
<h3 id="which">Which components do I need?</h3> <h3 id="which">Which components do I need?</h3>
@@ -257,8 +263,8 @@ recommended or full development environment: </p>
<td style="font-size:.9em;background-color:#FFE;color:gray">SDK Tools</td> <td style="font-size:.9em;background-color:#FFE;color:gray">SDK Tools</td>
<td style="font-size:.9em;background-color:#FFE;color:gray">If you've installed <td style="font-size:.9em;background-color:#FFE;color:gray">If you've installed
the SDK starter package, then you already have this component preinstalled. The the SDK starter package, then you already have this component preinstalled. The
SDK Tools component is required &mdash; you can't develop or build an application SDK Tools and the SDK Platform-tools components are required &mdash; you can't develop or build an
without it. </td> application without these. Make sure you keep these up to date.</td>
</tr> </tr>
<tr> <tr>
@@ -324,8 +330,8 @@ applications on different platforms by running in an Android Virtual Device
to add components, see the <a href="{@docRoot}sdk/adding-components.html">Adding to add components, see the <a href="{@docRoot}sdk/adding-components.html">Adding
SDK Components</a> document. </p> SDK Components</a> document. </p>
<p>For revision notes and other detailed information about individual SDK <p>For revision notes and other detailed information about individual SDK
components, see the documents listed under "Downloadable SDK Components" in components, see the documents listed under "Downloadable SDK Components" in
the navigation at left.</p> the navigation at left.</p>
@@ -335,7 +341,7 @@ the navigation at left.</p>
and add-ons that you need, open the SDK directory and take a look at what's and add-ons that you need, open the SDK directory and take a look at what's
inside.</p> inside.</p>
<p>The table below describes the full SDK directory contents, with components <p>The table below describes the full SDK directory contents, with components
installed. </p> installed. </p>
<table> <table>
@@ -351,10 +357,19 @@ devices. </td>
<tr> <tr>
<td colspan="3"><code>docs/</code></td> <td colspan="3"><code>docs/</code></td>
<td>A full set of documentation in HTML format, including the Developer's Guide, <td>A full set of documentation in HTML format, including the Developer's Guide,
API Reference, and other information. To read the documentation, load the API Reference, and other information. To read the documentation, load the
file <code>offline.html</code> in a web browser.</td> file <code>offline.html</code> in a web browser.</td>
</tr> </tr>
<tr> <tr>
<td colspan="3"><code>platform-tools/</code></td>
<td>Contains development tools that may be updated with each platform release (from the <em>Android
SDK Platform-tools</em> component). Tools in here include {@code adb}, {@code dexdump}, and others
others that you don't typically use directly. These tools are separate from the generic development
tools in the {@code tools/} directory, because these tools may be updated in order to support new
features in the latest Android platform, whereas the other tools have no dependencies on the
platform version.</td>
</tr>
<tr>
<td colspan="3"><code>platforms/</code></td> <td colspan="3"><code>platforms/</code></td>
<td>Contains a set of Android platform versions that you can develop <td>Contains a set of Android platform versions that you can develop
applications against, each in a separate directory. </td> applications against, each in a separate directory. </td>
@@ -362,7 +377,7 @@ applications against, each in a separate directory. </td>
<tr> <tr>
<td style="width:2em;border-bottom-color:white;"></td> <td style="width:2em;border-bottom-color:white;"></td>
<td colspan="2"><code><em>&lt;platform&gt;</em>/</code></td> <td colspan="2"><code><em>&lt;platform&gt;</em>/</code></td>
<td>Platform version directory, for example "android-1.6". All platform version <td>Platform version directory, for example "android-1.6". All platform version
directories contain a similar set of files and subdirectory structure.</td> directories contain a similar set of files and subdirectory structure.</td>
</tr> </tr>
@@ -376,8 +391,8 @@ directories contain a similar set of files and subdirectory structure.</td>
<td style="width:2em;border-bottom-color:white;"></td> <td style="width:2em;border-bottom-color:white;"></td>
<td style="width:2em;border-bottom-color:white;"></td> <td style="width:2em;border-bottom-color:white;"></td>
<td><code>images/</code></td> <td><code>images/</code></td>
<td>Storage area for default disk images, including the Android system image, <td>Storage area for default disk images, including the Android system image,
the default userdata image, the default ramdisk image, and more. The images the default userdata image, the default ramdisk image, and more. The images
are used in emulator sessions.</td> are used in emulator sessions.</td>
</tr> </tr>
<tr> <tr>
@@ -397,7 +412,8 @@ designed for a specific screen resolution.</td>
<td style="width:2em;border-bottom-color:white;"></td> <td style="width:2em;border-bottom-color:white;"></td>
<td style="width:2em;border-bottom-color:white;"></td> <td style="width:2em;border-bottom-color:white;"></td>
<td><code>tools/</code></td> <td><code>tools/</code></td>
<td>Any development tools that are specific to the platform version.</td> <td>This directory is used only by SDK Tools r7 and below for development tools that are specific to
this platform version&mdash;it's not used by SDK Tools r8 and above.</td>
</tr> </tr>
<tr> <tr>
<td style="width:2em;"></td> <td style="width:2em;"></td>
@@ -411,18 +427,21 @@ version.</td>
<td>Sample code and apps that are specific to platform version.</td> <td>Sample code and apps that are specific to platform version.</td>
</tr> </tr>
<td colspan="3"><code>tools/</code></td> <td colspan="3"><code>tools/</code></td>
<td>Contains the set of development and profiling tools available to you, such <td>Contains the set of development and profiling tools that are platform-independent, such
as the emulator, the <code>android</code> tool, adb, ddms, and more.</td> as the emulator, the AVD and SDK Manager, adb, ddms, hierarchyviewer and more. The tools in
this directory may be updated at any time (from the <em>Android SDK Tools</em> component),
independent of platform releases, whereas the tools in {@code platform-tools/} may be updated based
on the latest platform release.</td>
</tr> </tr>
<tr> <tr>
<td colspan="3"><code>SDK Readme.txt</code></td> <td colspan="3"><code>SDK Readme.txt</code></td>
<td>A file that explains how to perform the initial setup of your SDK, <td>A file that explains how to perform the initial setup of your SDK,
including how to launch the Android SDK and AVD Manager tool on all including how to launch the Android SDK and AVD Manager tool on all
platforms</td> platforms</td>
</tr> </tr>
<tr> <tr>
<td colspan="3"><code>SDK Setup.exe</code></td> <td colspan="3"><code>SDK Manager.exe</code></td>
<td>Windows SDK only. A shortcut that launches the Android SDK and AVD <td>Windows SDK only. A shortcut that launches the Android SDK and AVD
Manager tool, which you use to add components to your SDK. </td> Manager tool, which you use to add components to your SDK. </td>
</tr> </tr>
<!--<tr> <!--<tr>
@@ -447,7 +466,7 @@ begin developing applications. Here are a few ways you can get started: </p>
</li> </li>
</ul> </ul>
<p class="caution">Following the Hello World tutorial is an essential <p class="caution">Following the Hello World tutorial is an essential
first step in getting started with Android development. </p> first step in getting started with Android development. </p>
<p><strong>Learn about Android</strong></p> <p><strong>Learn about Android</strong></p>
@@ -481,20 +500,20 @@ Android-powered device to run and test your application.</li>
<ul> <ul>
<li>The <a href="{@docRoot}resources/tutorials/notepad/index.html"> <li>The <a href="{@docRoot}resources/tutorials/notepad/index.html">
Notepad Tutorial</a> shows you how to build a full Android application Notepad Tutorial</a> shows you how to build a full Android application
and provides helpful commentary on the Android system and API. The and provides helpful commentary on the Android system and API. The
Notepad tutorial helps you bring together the important design Notepad tutorial helps you bring together the important design
and architectural concepts in a moderately complex application. and architectural concepts in a moderately complex application.
</li> </li>
</ul> </ul>
<p class="caution">Following the Notepad tutorial is an excellent <p class="caution">Following the Notepad tutorial is an excellent
second step in getting started with Android development. </p> second step in getting started with Android development. </p>
<p><strong>Explore some code</strong></p> <p><strong>Explore some code</strong></p>
<ul> <ul>
<li>The Android SDK includes sample code and applications for each platform <li>The Android SDK includes sample code and applications for each platform
version. You can browse the samples in the <a version. You can browse the samples in the <a
href="{@docRoot}resources/index.html">Resources</a> tab or download them href="{@docRoot}resources/index.html">Resources</a> tab or download them
into your SDK using the Android SDK and AVD Manager. Once you've downloaded the into your SDK using the Android SDK and AVD Manager. Once you've downloaded the
samples, you'll find them in samples, you'll find them in
@@ -517,7 +536,7 @@ samples, you'll find them in
<ul> <ul>
<li>If you need help installing and configuring Java on your <li>If you need help installing and configuring Java on your
development machine, you might find these resources helpful: development machine, you might find these resources helpful:
<ul> <ul>
<li><a href="https://help.ubuntu.com/community/Java">https://help.ubuntu.com/community/Java </a></li> <li><a href="https://help.ubuntu.com/community/Java">https://help.ubuntu.com/community/Java </a></li>
<li><a href="https://help.ubuntu.com/community/Java">https://help.ubuntu.com/community/JavaInstallation</a></li> <li><a href="https://help.ubuntu.com/community/Java">https://help.ubuntu.com/community/JavaInstallation</a></li>
@@ -537,7 +556,7 @@ samples, you'll find them in
eclipse.org (<a eclipse.org (<a
href="http://www.eclipse.org/downloads/">http://www.eclipse.org/ href="http://www.eclipse.org/downloads/">http://www.eclipse.org/
downloads/</a>). A Java or RCP version of Eclipse is recommended.</li> downloads/</a>). A Java or RCP version of Eclipse is recommended.</li>
<li>Follow the steps given in previous sections to install the SDK <li>Follow the steps given in previous sections to install the SDK
and the ADT plugin. </li> and the ADT plugin. </li>
</ol> </ol>
</li> </li>