diff options
author | Ricardo Cervera <rcervera@google.com> | 2014-04-02 00:27:51 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-04-02 00:27:51 +0000 |
commit | fb0873268cd2602cf3b0eaf90485824a814561c3 (patch) | |
tree | 93d60d99a09e6bdaa39ae5c49a026917704a25d9 /docs | |
parent | 118d252e7541bfe2c0453814acc3bee0b6312de1 (diff) | |
parent | 04c2a5571620927f702af3707845b1b05769dc46 (diff) | |
download | frameworks_base-fb0873268cd2602cf3b0eaf90485824a814561c3.zip frameworks_base-fb0873268cd2602cf3b0eaf90485824a814561c3.tar.gz frameworks_base-fb0873268cd2602cf3b0eaf90485824a814561c3.tar.bz2 |
am 04c2a557: am c013eaad: 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 '04c2a5571620927f702af3707845b1b05769dc46':
docs: Added notes to use the last SDK version to the Build your First App class.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/html/training/basics/firstapp/creating-project.jd | 24 | ||||
-rw-r--r-- | docs/html/training/basics/firstapp/index.jd | 24 | ||||
-rw-r--r-- | docs/html/training/basics/firstapp/starting-activity.jd | 28 |
3 files changed, 42 insertions, 34 deletions
diff --git a/docs/html/training/basics/firstapp/creating-project.jd b/docs/html/training/basics/firstapp/creating-project.jd index 50485db..c4cb362 100644 --- a/docs/html/training/basics/firstapp/creating-project.jd +++ b/docs/html/training/basics/firstapp/creating-project.jd @@ -10,9 +10,9 @@ next.link=running-app.html <!-- This is the training bar --> -<div id="tb-wrapper"> -<div id="tb"> - +<div id="tb-wrapper"> +<div id="tb"> + <h2>This lesson teaches you to</h2> <ol> @@ -27,10 +27,10 @@ next.link=running-app.html SDK</a></li> <li><a href="{@docRoot}tools/projects/index.html">Managing Projects</a></li> </ul> - - -</div> -</div> + + +</div> +</div> <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 @@ -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 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 lesson.</p> @@ -50,7 +50,7 @@ lesson.</p> <h2 id="Eclipse">Create a Project with Eclipse</h2> <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> <li>In the window that appears, open the <strong>Android</strong> folder, 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. <p>For this project, select <strong>BlankActivity</strong> and click <strong>Next</strong>.</p> </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> </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> @@ -155,7 +155,7 @@ and replace projects.</p></li> </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> <p class="note"><strong>Tip:</strong> Add the <code>platform-tools/</code> as well as the diff --git a/docs/html/training/basics/firstapp/index.jd b/docs/html/training/basics/firstapp/index.jd index 4c1a0dc..1b49096 100644 --- a/docs/html/training/basics/firstapp/index.jd +++ b/docs/html/training/basics/firstapp/index.jd @@ -8,21 +8,21 @@ next.link=creating-project.html @jd:body -<div id="tb-wrapper"> -<div id="tb"> - -<h2>Dependencies and prerequisites</h2> +<div id="tb-wrapper"> +<div id="tb"> + +<h2>Dependencies and prerequisites</h2> <ul> <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> </ul> - -</div> -</div> - -<p>Welcome to Android application development!</p> + +</div> +</div> + +<p>Welcome to Android application development!</p> <p>This class teaches you how to build your first Android app. You’ll learn how to create an Android 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> </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 <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> diff --git a/docs/html/training/basics/firstapp/starting-activity.jd b/docs/html/training/basics/firstapp/starting-activity.jd index 9aa25a3..27d2c10 100644 --- a/docs/html/training/basics/firstapp/starting-activity.jd +++ b/docs/html/training/basics/firstapp/starting-activity.jd @@ -10,9 +10,9 @@ previous.link=building-ui.html <!-- This is the training bar --> -<div id="tb-wrapper"> -<div id="tb"> - +<div id="tb-wrapper"> +<div id="tb"> + <h2>This lesson teaches you to</h2> <ol> @@ -30,10 +30,10 @@ previous.link=building-ui.html <li><a href="{@docRoot}sdk/installing/index.html">Installing the SDK</a></li> </ul> - - -</div> -</div> + + +</div> +</div> @@ -151,7 +151,7 @@ intent.putExtra(EXTRA_MESSAGE, message); </pre> <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> <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> <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> <li>In the window that appears, open the <strong>Android</strong> folder 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 onOptionsItemSelected()} which handles the behavior for the action bar's <em>Up</em> behavior. 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 activity.</li> </ul> -<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 +<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 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> <pre> |