diff --git a/docs/html/resources/tutorials/hello-world.jd b/docs/html/resources/tutorials/hello-world.jd index 6e315b2b1ebb4..431a6cddd4a24 100644 --- a/docs/html/resources/tutorials/hello-world.jd +++ b/docs/html/resources/tutorials/hello-world.jd @@ -1,10 +1,10 @@ page.title=Hello, World @jd:body -
If you're not using Eclipse, that's okay. Familiarize yourself with +
This tutorial assumes that you're using Eclipse. If you're not, see Developing in Other IDEs. You can then return to this tutorial and ignore anything about Eclipse.
-Before you start, you should already have the very latest SDK installed, and if you're using -Eclipse, you should have installed the ADT plugin as well. If you have not installed these, see -Installing the Android SDK and return -here when you've completed the installation.
+Before you start, you should already have the SDK installed, and if you're +using Eclipse, you should have installed the ADT plugin as well. If you have not +installed these, see Installing the +Android SDK and return here when you've completed the installation.
+ +To run the Hello World application, you need to install at least one Android +platform in your SDK environment. If you have not already performed this step, +you need to do it now.
+ +To install a platform in Eclipse:
+ +To create an AVD, use the "android" tool provided in the Android SDK.
-Open a command prompt or terminal, navigate to the
-tools/ directory in the SDK package and execute:
-
-android create avd --target 2 --name my_avd -- -
The tool now asks if you would like to create a custom hardware profile. -For the time being, press Return to skip it ("no" is the default response). -That's it. This configures an AVD named "my_avd" that uses the Android 1.5 -platform. The AVD is now ready for use in the emulator.
- -In the above command, the --target option is required
-and specifies the deployment target to run on the emulator.
-The --name option is also required and defines the
-name for the new AVD.
To create an AVD:
+The Create New AVD dialog appears.
+ +You can ignore the rest of the fields for now.
+After you've created an AVD, the next step is to start a new @@ -90,7 +112,6 @@ Android project in Eclipse.
Click Finish.
@@ -111,7 +132,7 @@ Android project in Eclipse. reside under. This also sets the package name under which the stub Activity will be generated.Your package name must be unique across - all packages installed on the Android system; for this reason, it's very + all packages installed on the Android system; for this reason, it's important to use a standard domain-style package for your applications. The example above uses the "com.example" namespace, which is a namespace reserved for example documentation — @@ -124,15 +145,9 @@ Android project in Eclipse.
chooses, but it doesn't need to. As the checkbox suggests, this is optional, but an Activity is almost always used as the basis for an application.Other fields: The checkbox for "Use default location" allows you to change @@ -172,7 +187,7 @@ public class HelloAndroid extends Activity {
Notice that the class is based on the {@link android.app.Activity} class. An Activity is a single application entity that is used to perform actions. An application may have many separate activities, but the user interacts with them one at a time. The -{@link android.app.Activity#onCreate(Bundle) onCreate()} method +{@link android.app.Activity#onCreate(Bundle) onCreate()} method will be called by the Android system when your Activity starts — it is where you should perform all initialization and UI setup. An activity is not required to have a user interface, but usually will.
@@ -221,7 +236,7 @@ HelloAndroid class is a subclass of Activity, it is also a Context. So, you can passthis as your Context reference to the TextView.
Next, you define the text content with -{@link android.widget.TextView setText(CharSequence) setText()}.
+{@link android.widget.TextView#setText(CharSequence) setText()}.Finally, you pass the TextView to {@link android.app.Activity#setContentView(View) setContentView()} in order to @@ -235,7 +250,7 @@ to see it running.
The Eclipse plugin makes it very easy to run your applications:
+The Eclipse plugin makes it easy to run your applications:
For more information on how to use the SDK tools to create and build projects, please read -Developing in Other IDEs.
+Developing in Other IDEs. \ No newline at end of file diff --git a/docs/html/resources/tutorials/images/hello_world_1.png b/docs/html/resources/tutorials/images/hello_world_1.png index 1e5f7b0cdfe3a..1ff8e2b2b825d 100644 Binary files a/docs/html/resources/tutorials/images/hello_world_1.png and b/docs/html/resources/tutorials/images/hello_world_1.png differ