am 5a218b18: am 8e183798: Merge "docs: Added notes to use the last SDK version to the Build your First App class." into klp-docs

* commit '5a218b186735534925d7fedb63f1c78a3a3ff543':
  docs: Added notes to use the last SDK version to the Build your First App class.
This commit is contained in:
Ricardo Cervera
2014-04-02 00:15:31 +00:00
committed by Android Git Automerger
3 changed files with 42 additions and 34 deletions

View File

@@ -10,9 +10,9 @@ next.link=running-app.html
<!-- This is the training bar --> <!-- This is the training bar -->
<div id="tb-wrapper"> <div id="tb-wrapper">
<div id="tb"> <div id="tb">
<h2>This lesson teaches you to</h2> <h2>This lesson teaches you to</h2>
<ol> <ol>
@@ -27,10 +27,10 @@ next.link=running-app.html
SDK</a></li> 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>
</div> </div>
</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. The Android SDK tools make it easy to start a new Android project with a set of
@@ -42,7 +42,7 @@ SDK tools from a command line.</p>
<p class="note"><strong>Note:</strong> You should already have the Android SDK installed, and if <p class="note"><strong>Note:</strong> You should already have the Android SDK installed, and if
you're using Eclipse, you should also have the <a href="{@docRoot}tools/sdk/eclipse-adt.html">ADT you're using Eclipse, you should also have the <a href="{@docRoot}tools/sdk/eclipse-adt.html">ADT
plugin</a> installed (version 21.0.0 or higher). If you don't have these, follow the guide to <a plugin</a> installed (version 22.6.2 or higher). If you don't have these, follow the guide to <a
href="{@docRoot}sdk/installing/index.html">Installing the Android SDK</a> before you start this href="{@docRoot}sdk/installing/index.html">Installing the Android SDK</a> before you start this
lesson.</p> lesson.</p>
@@ -50,7 +50,7 @@ lesson.</p>
<h2 id="Eclipse">Create a Project with Eclipse</h2> <h2 id="Eclipse">Create a Project with Eclipse</h2>
<ol> <ol>
<li>Click <strong>New</strong> <img src="{@docRoot}images/tools/eclipse-new.png" <li>Click <strong>New</strong> <img src="{@docRoot}images/tools/eclipse-new.png"
style="vertical-align:baseline;margin:0" /> in the toolbar.</li> style="vertical-align:baseline;margin:0" /> in the toolbar.</li>
<li>In the window that appears, open the <strong>Android</strong> folder, <li>In the window that appears, open the <strong>Android</strong> folder,
select <strong>Android Application Project</strong>, and click <strong>Next</strong>.</li> select <strong>Android Application Project</strong>, and click <strong>Next</strong>.</li>
@@ -116,11 +116,11 @@ devices.</li>
<li>Now you can select an activity template from which to begin building your app. <li>Now you can select an activity template from which to begin building your app.
<p>For this project, select <strong>BlankActivity</strong> and click <strong>Next</strong>.</p> <p>For this project, select <strong>BlankActivity</strong> and click <strong>Next</strong>.</p>
</li> </li>
<li>Leave all the details for the activity in their default state and click <li>Leave all the details for the activity in their default state and click
<strong>Finish</strong>.</li> <strong>Finish</strong>.</li>
</ol> </ol>
<p>Your Android project is now a basic "Hello World" app that contains some default files. <p>Your Android project is now a basic "Hello World" app that contains some default files.
To run the app, continue to the <a href="running-app.html">next lesson</a>.</p> To run the app, continue to the <a href="running-app.html">next lesson</a>.</p>
@@ -155,7 +155,7 @@ and replace
projects.</p></li> projects.</p></li>
</ol> </ol>
<p>Your Android project is now a basic "Hello World" app that contains some default files. <p>Your Android project is now a basic "Hello World" app that contains some default files.
To run the app, continue to the <a href="running-app.html">next lesson</a>.</p> To run the app, continue to the <a href="running-app.html">next lesson</a>.</p>
<p class="note"><strong>Tip:</strong> Add the <code>platform-tools/</code> as well as the <p class="note"><strong>Tip:</strong> Add the <code>platform-tools/</code> as well as the

View File

@@ -8,21 +8,21 @@ next.link=creating-project.html
@jd:body @jd:body
<div id="tb-wrapper"> <div id="tb-wrapper">
<div id="tb"> <div id="tb">
<h2>Dependencies and prerequisites</h2> <h2>Dependencies and prerequisites</h2>
<ul> <ul>
<li><a href="http://developer.android.com/sdk/index.html">Android SDK</a></li> <li><a href="http://developer.android.com/sdk/index.html">Android SDK</a></li>
<li><a href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> 20.0.0 or higher <li><a href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> 22.6.2 or higher
(if you're using Eclipse)</li> (if you're using Eclipse)</li>
</ul> </ul>
</div> </div>
</div> </div>
<p>Welcome to Android application development!</p> <p>Welcome to Android application development!</p>
<p>This class teaches you how to build your first Android app. Youll learn how to create an Android <p>This class teaches you how to build your first Android app. Youll learn how to create an Android
project and run a debuggable version of the app. You'll also learn some fundamentals of Android app project and run a debuggable version of the app. You'll also learn some fundamentals of Android app
@@ -36,6 +36,10 @@ to:</p>
<li>Download the latest SDK tools and platforms using the SDK Manager.</li> <li>Download the latest SDK tools and platforms using the SDK Manager.</li>
</ol> </ol>
<p class="note"><strong>Note:</strong> Make sure you install the most recent versions of the ADT
plugin and the Android SDK before you start this class. The procedures described in this class may
not apply to earlier versions.</p>
<p>If you haven't already done these tasks, start by downloading the <p>If you haven't already done these tasks, start by downloading the
<a href="{@docRoot}sdk/index.html">Android SDK</a> and following the install steps. <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> Once you've finished the setup, you're ready to begin this class.</p>

View File

@@ -10,9 +10,9 @@ previous.link=building-ui.html
<!-- This is the training bar --> <!-- This is the training bar -->
<div id="tb-wrapper"> <div id="tb-wrapper">
<div id="tb"> <div id="tb">
<h2>This lesson teaches you to</h2> <h2>This lesson teaches you to</h2>
<ol> <ol>
@@ -30,10 +30,10 @@ previous.link=building-ui.html
<li><a href="{@docRoot}sdk/installing/index.html">Installing the <li><a href="{@docRoot}sdk/installing/index.html">Installing the
SDK</a></li> SDK</a></li>
</ul> </ul>
</div> </div>
</div> </div>
@@ -151,7 +151,7 @@ intent.putExtra(EXTRA_MESSAGE, message);
</pre> </pre>
<p class="note"><strong>Note:</strong> <p class="note"><strong>Note:</strong>
You now need an import statement for <code>android.widget.EditText</code>. You now need an import statement for <code>android.widget.EditText</code>.
You'll define the <code>EXTRA_MESSAGE</code> constant in a moment.</p> You'll define the <code>EXTRA_MESSAGE</code> constant in a moment.</p>
<p>An {@link android.content.Intent} can carry a collection of various data types as key-value <p>An {@link android.content.Intent} can carry a collection of various data types as key-value
@@ -212,7 +212,7 @@ work.</p>
<p>To create a new activity using Eclipse:</p> <p>To create a new activity using Eclipse:</p>
<ol> <ol>
<li>Click <strong>New</strong> <img src="{@docRoot}images/tools/eclipse-new.png" <li>Click <strong>New</strong> <img src="{@docRoot}images/tools/eclipse-new.png"
style="vertical-align:baseline;margin:0" /> in the toolbar.</li> style="vertical-align:baseline;margin:0" /> in the toolbar.</li>
<li>In the window that appears, open the <strong>Android</strong> folder <li>In the window that appears, open the <strong>Android</strong> folder
and select <strong>Android Activity</strong>. Click <strong>Next</strong>.</li> and select <strong>Android Activity</strong>. Click <strong>Next</strong>.</li>
@@ -247,15 +247,19 @@ you won't need it for this app so you can remove it.</li>
<li>There's also an implementation of {@link android.app.Activity#onOptionsItemSelected <li>There's also an implementation of {@link android.app.Activity#onOptionsItemSelected
onOptionsItemSelected()} which handles the behavior for the action bar's <em>Up</em> behavior. onOptionsItemSelected()} which handles the behavior for the action bar's <em>Up</em> behavior.
Keep this one the way it is.</li> Keep this one the way it is.</li>
<li>There's also a <code>PlaceholderFragment</code> class that extends <li>There's also a <code>PlaceholderFragment</code> class that extends
{@link android.app.Fragment}. You will not need this class in the final version of this {@link android.app.Fragment}. You will not need this class in the final version of this
activity.</li> activity.</li>
</ul> </ul>
<p>Fragments decompose application functionality and UI into reusable modules. For more <p>Fragments decompose application functionality and UI into reusable modules. For more
information on fragments, see the <a href="{@docRoot}guide/components/fragments.html">Fragments information on fragments, see the <a href="{@docRoot}guide/components/fragments.html">Fragments
API Guide</a>. The final version of this activity does not use fragments.</p> API Guide</a>. The final version of this activity does not use fragments.</p>
<p class="note"><strong>Note:</strong> Your activity may look different if you did not use
the latest version of the ADT plugin. Make sure you install the latest version of the
<a href="{@docRoot}tools/sdk/eclipse-adt.html">ADT plugin</a> to complete this tutorial.</p>
<p>The {@code DisplayMessageActivity} class should now look like this:</p> <p>The {@code DisplayMessageActivity} class should now look like this:</p>
<pre> <pre>