am 2b4bd09c: am d9c08bac: am 895ab42f: am 59a3dd7b: misc fixes for studio launch: update install instructions, update tools nav for AVD page, update AVD instructions in first app class, other edits to first app.

* commit '2b4bd09c5e839dd79460a159917a068e9150ecf2':
  misc fixes for studio launch: update install instructions, update tools nav for AVD page, update AVD instructions in first app class, other edits to first app.
This commit is contained in:
smain@google.com
2014-12-08 09:04:54 +00:00
committed by Android Git Automerger
6 changed files with 46 additions and 48 deletions

View File

@@ -64,10 +64,10 @@ So before you can start, there are a few packages you should add to your Android
<p>To start adding packages, launch the Android SDK Manager in one of the following ways:</p> <p>To start adding packages, launch the Android SDK Manager in one of the following ways:</p>
<ul> <ul>
<li>In Eclipse or Android Studio, click <strong>SDK Manager</strong> <li>In Android Studio, click <strong>SDK Manager</strong>
<img src="{@docRoot}images/tools/sdk-manager-studio.png" <img src="{@docRoot}images/tools/sdk-manager-studio.png"
style="vertical-align:bottom;margin:0;height:17px" /> in the toolbar.</li> style="vertical-align:bottom;margin:0;height:17px" /> in the toolbar.</li>
<li>If you're not using Eclipse or Android Studio: <li>If you're not using Android Studio:
<ul> <ul>
<li>Windows: Double-click the <code>SDK Manager.exe</code> file at the root of the Android <li>Windows: Double-click the <code>SDK Manager.exe</code> file at the root of the Android
SDK directory.</li> SDK directory.</li>
@@ -77,7 +77,7 @@ style="vertical-align:bottom;margin:0;height:17px" /> in the toolbar.</li>
</li> </li>
</ul> </ul>
<p>When you open the SDK Manager for the first time, several packages will be selected by <p>When you open the SDK Manager for the first time, several packages are selected by
default. Leave these selected, but be sure you have everything you need default. Leave these selected, but be sure you have everything you need
to get started by following these steps:</p> to get started by following these steps:</p>

View File

@@ -56,8 +56,7 @@ style="float:right;font-size:13px"><a href='' onclick='showAll();return false;'
<p><b>To set up Android Studio on Windows:</b></p> <p><b>To set up Android Studio on Windows:</b></p>
<ol> <ol>
<li>Unzip the file, {@code android-studio-ide-&lt;version&gt;-windows.zip} and launch the <li>Launch the <code>.exe</code> file you just downloaded.</li>
<code>studio.exe</code> file.</li>
<li>Follow the setup wizard to install Android Studio and the SDK Tools. <li>Follow the setup wizard to install Android Studio and the SDK Tools.
<p>On some Windows systems, the launcher script does not find where Java is installed. <p>On some Windows systems, the launcher script does not find where Java is installed.
@@ -87,8 +86,9 @@ where they are installed. For example:</p>
<p><b>To set up Android Studio on Mac OSX:</b></p> <p><b>To set up Android Studio on Mac OSX:</b></p>
<ol> <ol>
<li>Unzip the downloaded zip file, {@code android-studio-ide-&lt;version&gt;-mac.zip}.</li> <li>Launch the {@code .dmg} file you just downloaded.</li>
<li>Drag and drop Android Studio into the Applications folder. <li>Drag and drop Android Studio into the Applications folder.
<li>Open Android Studio and follow the instructions to set up the SDK.
<p> <p>
Depending on your security settings, when you attempt to open Android Studio, you might Depending on your security settings, when you attempt to open Android Studio, you might
see a warning that says the package is damaged and should be moved to the trash. If this see a warning that says the package is damaged and should be moved to the trash. If this
@@ -96,13 +96,11 @@ where they are installed. For example:</p>
<strong>Allow applications downloaded from</strong>, select <strong>Anywhere</strong>. <strong>Allow applications downloaded from</strong>, select <strong>Anywhere</strong>.
Then open Android Studio again.</p> Then open Android Studio again.</p>
</li> </li>
<li>Follow the links to install the SDK outside of the Android Studio directories.</li>
</ol> </ol>
<p>The individual tools and other SDK packages are saved outside the Android Studio application <p>If you need use the Android SDK tools from a command line,
directory. If you need access the tools directly, use a terminal to navigate into the location you can access them at:</p>
where they are installed. For example:</p> <p><code>/Users/&lt;user>/Library/Android/sdk/</code></p>
<p><code>/Applications/sdk/</code></p>
</div><!-- end mac --> </div><!-- end mac -->
@@ -113,14 +111,14 @@ where they are installed. For example:</p>
<p><b>To set up Android Studio on Linux:</b></p> <p><b>To set up Android Studio on Linux:</b></p>
<ol> <ol>
<li>Unpack the downloaded Tar file, {@code android-studio-ide-&lt;version&gt;-linux.zip}, into an <li>Unpack the downloaded ZIP file into an
appropriate location for your applications. appropriate location for your applications.
<li>To launch Android Studio, navigate to the {@code android-studio/bin/} directory <li>To launch Android Studio, navigate to the {@code android-studio/bin/} directory
in a terminal and execute {@code studio.sh}. in a terminal and execute {@code studio.sh}.
<p>You may want to add {@code android-studio/bin/} to your PATH environmental <p>You may want to add {@code android-studio/bin/} to your PATH environmental
variable so that you can start Android Studio from any directory.</p> variable so that you can start Android Studio from any directory.</p>
</li> </li>
<li>Follow the links to install the SDK outside of the Android Studio directories.</li> <li>Follow the links to install the SDK tools outside of the Android Studio directories.</li>
</ol> </ol>
</div><!-- end linux --> </div><!-- end linux -->

View File

@@ -52,7 +52,7 @@
<li class="nav-section"> <li class="nav-section">
<div class="nav-section-header"><a href="<?cs var:toroot ?>tools/projects/index.html"><span class="en">Managing Projects</span></a></div> <div class="nav-section-header"><a href="<?cs var:toroot ?>tools/projects/index.html"><span class="en">Managing Projects</span></a></div>
<ul> <ul>
<li><a href="<?cs var:toroot ?>tools/projects/projects-eclipse.html"><span class="en">From Eclipse with ADT</span></a></li> <li><a href="<?cs var:toroot ?>tools/projects/projects-studio.html"><span class="en">From Android Studio</span></a></li>
<li><a href="<?cs var:toroot ?>tools/projects/projects-cmdline.html"><span class="en">From the Command Line</span></a></li> <li><a href="<?cs var:toroot ?>tools/projects/projects-cmdline.html"><span class="en">From the Command Line</span></a></li>
<li><a href="<?cs var:toroot ?>tools/projects/templates.html"><span class="en">Using Code Templates</span></a></li> <li><a href="<?cs var:toroot ?>tools/projects/templates.html"><span class="en">Using Code Templates</span></a></li>
</ul> </ul>

View File

@@ -24,8 +24,6 @@ next.link=running-app.html
<h2>You should also read</h2> <h2>You should also read</h2>
<ul> <ul>
<li><a href="{@docRoot}sdk/installing/index.html">Installing the
SDK</a></li>
<li><a href="{@docRoot}tools/projects/index.html">Managing Projects</a></li> <li><a href="{@docRoot}tools/projects/index.html">Managing Projects</a></li>
</ul> </ul>
@@ -34,8 +32,7 @@ SDK</a></li>
</div> </div>
<p>An Android project contains all the files that comprise the source code for your Android <p>An Android project contains all the files that comprise the source code for your Android
app. The Android SDK tools make it easy to start a new Android project with a set of app.</p>
default project directories and files.</p>
<p>This lesson <p>This lesson
shows how to create a new project either using Android Studio or using the shows how to create a new project either using Android Studio or using the

View File

@@ -12,7 +12,7 @@ helpoutsWidget=true
<div id="tb-wrapper"> <div id="tb-wrapper">
<div id="tb"> <div id="tb">
<h2>Dependencies and prerequisites</h2> <h2>Dependencies</h2>
<ul> <ul>
<li><a href="{@docRoot}sdk/index.html">Android Studio</a></li> <li><a href="{@docRoot}sdk/index.html">Android Studio</a></li>
@@ -37,14 +37,11 @@ to:</p>
<a href="{@docRoot}tools/help/sdk-manager.html">SDK Manager</a>.</li> <a href="{@docRoot}tools/help/sdk-manager.html">SDK Manager</a>.</li>
</ol> </ol>
<p class="note"><strong>Note:</strong> Make sure you install the most recent versions of Android <p class="note"><strong>Note:</strong> Although most of this training class
Studio and the Android SDK before you start this class. The procedures described in this class may expects that you're using Android Studio, some procedures include alternative
not apply to earlier versions.</p> instructions for using
the SDK tools from the command line instead.</p>
<p>If you haven't already done these tasks, start by downloading the <p>This class uses a tutorial format to create a small Android app that teaches
<a href="{@docRoot}sdk/index.html">Android SDK</a> and following the install steps.
Once you've finished the setup, you're ready to begin this class.</p>
<p>This class uses a tutorial format that incrementally builds a small Android app that teaches
you some fundamental concepts about Android development, so it's important that you follow each you some fundamental concepts about Android development, so it's important that you follow each
step.</p> step.</p>

View File

@@ -25,7 +25,7 @@ helpoutsWidget=true
<ul> <ul>
<li><a href="{@docRoot}tools/device.html">Using Hardware Devices</a></li> <li><a href="{@docRoot}tools/device.html">Using Hardware Devices</a></li>
<li><a href="{@docRoot}tools/devices/index.html">Managing Virtual Devices</a></li> <li><a href="{@docRoot}tools/devices/managing-avds.html">Managing AVDs with AVD Manager</a></li>
<li><a href="{@docRoot}tools/projects/index.html">Managing Projects</a></li> <li><a href="{@docRoot}tools/projects/index.html">Managing Projects</a></li>
</ul> </ul>
@@ -105,35 +105,41 @@ to first create an <a href="{@docRoot}tools/devices/index.html">Android Virtual
AVD is a device configuration for the Android emulator that allows you to model a specific AVD is a device configuration for the Android emulator that allows you to model a specific
device.</p> device.</p>
<div class="figure" style="width:457px">
<img src="{@docRoot}images/screens_support/as-mac-avds-config.png" />
<p class="img-caption"><strong>Figure 1.</strong> The AVD Manager showing a virtual device.</p>
</div>
<h3>Create an AVD</h3> <h3>Create an AVD</h3>
<ol> <ol>
<li>Launch the Android Virtual Device Manager: <li>Launch the Android Virtual Device Manager:
<ul> <ul>
<li>In the Android Studio tool bar, click the Android Virtual Device Manager icon <li>In Android Studio, select <strong>Tools &gt; Android &gt; AVD Manager</strong>, or click
<img src="{@docRoot}images/tools/avd-manager-studio.png" the AVD Manager icon <img src="{@docRoot}images/tools/avd-manager-studio.png" style="vertical-align:bottom;margin:0;height:19px"> in the toolbar.</li>
style="vertical-align:baseline;margin:0; max-height:1em" />.</li> <li>Or, from the command line, change directories to
<li>From the command line, change directories to <code>&lt;sdk>/tools/</code> and execute: <code>&lt;sdk>/tools/</code> and execute:
<pre class="no-pretty-print">android avd</pre></li> <pre class="no-pretty-print">android avd</pre>
</ul> <p class="note"><strong>Note:</strong> The AVD Manager that appears
when launched from the command line is different from the version in
Android Studio, so the following instructions may not apply.</p>
</li>
</ul>
<img src="{@docRoot}images/studio-avdmgr-firstscreen.png" alt=""
style="margin-top:1em">
<p class="img-caption"><strong>Figure 1.</strong> The AVD Manager main screen shows your current virtual devices.</p>
</li>
<li>On the AVD Manager main screen (figure 1), click <strong>Create Virtual Device</strong>.</li>
<li>In the Select Hardware window, select a device configuration, such as Nexus 6,
then click <strong>Next</strong>.
</li>
<li>Select the desired system version for the AVD and click <strong>Next</strong>.
</li>
<li>Verify the configuration settings, then click <strong>Finish</strong>.
</li> </li>
<li>In the <strong>Android Virtual Device Manager</strong> window, click <strong>Create</strong>.</li>
<li>Enter an <strong>AVD Name</strong>.</li>
<li>Select a <strong>Device</strong> type.
<p>When you select a device type, most of the fields auto-populate.</p>
<li>For <strong>Skin</strong> select <strong>HVGA</strong>.</li>
<li>For <strong>SD Card</strong>, enter something small, like 10 MiB.
<p>It really doesn't matter what you enter here since you're not using any storage. But if you
reuse this AVD, you might have to adjust this setting.</p></li>
<li>Ignore the <strong>Emulation Options</strong> and click <strong>OK</strong>.</li>
<li>In the <strong>Result</strong> screen, click <strong>OK</strong>.</li>
<li>Close the <strong>Android Virtual Device Manager</strong> window.</li>
</ol> </ol>
<p>For more information about using AVDs, see
<a href="{@docRoot}tools/devices/managing-avds.html">Managing AVDs with AVD Manager</a>.</p>
<h3>Run the app from Android Studio</h3> <h3>Run the app from Android Studio</h3>
<ol> <ol>
<li>In <strong>Android Studio</strong>, select your project and click <strong>Run</strong> <li>In <strong>Android Studio</strong>, select your project and click <strong>Run</strong>