From 8e5775daae2306df71675867d351fd28503fd06f Mon Sep 17 00:00:00 2001 From: Ricardo Cervera Date: Tue, 1 Apr 2014 10:46:16 -0700 Subject: docs: Added notes to use the last SDK version to the Build your First App class. Change-Id: I35820ff887b3d0f4ccc0ce7720576e3e692109b5 --- .../training/basics/firstapp/creating-project.jd | 24 +++++++++---------- docs/html/training/basics/firstapp/index.jd | 24 +++++++++++-------- .../training/basics/firstapp/starting-activity.jd | 28 ++++++++++++---------- 3 files changed, 42 insertions(+), 34 deletions(-) (limited to 'docs/html') 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 lesson teaches you to

    @@ -27,10 +27,10 @@ next.link=running-app.html SDK
  1. Managing Projects
  2. - - -
-
+ + +
+

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.

Note: You should already have the Android SDK installed, and if you're using Eclipse, you should also have the ADT -plugin installed (version 21.0.0 or higher). If you don't have these, follow the guide to installed (version 22.6.2 or higher). If you don't have these, follow the guide to Installing the Android SDK before you start this lesson.

@@ -50,7 +50,7 @@ lesson.

Create a Project with Eclipse

    -
  1. Click New Click New in the toolbar.
  2. In the window that appears, open the Android folder, select Android Application Project, and click Next.
  3. @@ -116,11 +116,11 @@ devices.
  4. Now you can select an activity template from which to begin building your app.

    For this project, select BlankActivity and click Next.

  5. -
  6. Leave all the details for the activity in their default state and click +
  7. Leave all the details for the activity in their default state and click Finish.
-

Your Android project is now a basic "Hello World" app that contains some default files. +

Your Android project is now a basic "Hello World" app that contains some default files. To run the app, continue to the next lesson.

@@ -155,7 +155,7 @@ and replace projects.

-

Your Android project is now a basic "Hello World" app that contains some default files. +

Your Android project is now a basic "Hello World" app that contains some default files. To run the app, continue to the next lesson.

Tip: Add the platform-tools/ 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 -

-
- -

Dependencies and prerequisites

+
+
+ +

Dependencies and prerequisites

- -
-
- -

Welcome to Android application development!

+ +
+
+ +

Welcome to Android application development!

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:

  • Download the latest SDK tools and platforms using the SDK Manager.
  • +

    Note: 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.

    +

    If you haven't already done these tasks, start by downloading the Android SDK and following the install steps. Once you've finished the setup, you're ready to begin this class.

    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 lesson teaches you to

      @@ -30,10 +30,10 @@ previous.link=building-ui.html
    1. Installing the SDK
    2. - - -
    -
    + + +
    +
    @@ -151,7 +151,7 @@ intent.putExtra(EXTRA_MESSAGE, message);

    Note: -You now need an import statement for android.widget.EditText. +You now need an import statement for android.widget.EditText. You'll define the EXTRA_MESSAGE constant in a moment.

    An {@link android.content.Intent} can carry a collection of various data types as key-value @@ -212,7 +212,7 @@ work.

    To create a new activity using Eclipse:

      -
    1. Click New Click New in the toolbar.
    2. In the window that appears, open the Android folder and select Android Activity. Click Next.
    3. @@ -247,15 +247,19 @@ you won't need it for this app so you can remove it.
    4. There's also an implementation of {@link android.app.Activity#onOptionsItemSelected onOptionsItemSelected()} which handles the behavior for the action bar's Up behavior. Keep this one the way it is.
    5. -
    6. There's also a PlaceholderFragment class that extends +
    7. There's also a PlaceholderFragment class that extends {@link android.app.Fragment}. You will not need this class in the final version of this activity.
    8. -

      Fragments decompose application functionality and UI into reusable modules. For more -information on fragments, see the Fragments +

      Fragments decompose application functionality and UI into reusable modules. For more +information on fragments, see the Fragments API Guide. The final version of this activity does not use fragments.

      +

      Note: 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 +ADT plugin to complete this tutorial.

      +

      The {@code DisplayMessageActivity} class should now look like this:

      -- 
      cgit v1.1