diff --git a/docs/html/training/basics/firstapp/building-ui.jd b/docs/html/training/basics/firstapp/building-ui.jd index 402396ea93200..275500c88141e 100644 --- a/docs/html/training/basics/firstapp/building-ui.jd +++ b/docs/html/training/basics/firstapp/building-ui.jd @@ -396,20 +396,13 @@ android.widget.LinearLayout}.

Run Your App

This layout is applied by the default {@link android.app.Activity} class -that the SDK tools generated when you created the project. Run the app to see the -results:

+that the SDK tools generated when you created the project.

- + style="vertical-align:baseline;margin:0; max-height:1em" /> in the + toolbar.

Continue to the next lesson to learn how to respond to button presses, read content diff --git a/docs/html/training/basics/firstapp/running-app.jd b/docs/html/training/basics/firstapp/running-app.jd index 99b38bfc63930..21fb64d83798b 100755 --- a/docs/html/training/basics/firstapp/running-app.jd +++ b/docs/html/training/basics/firstapp/running-app.jd @@ -76,46 +76,6 @@ from the toolbar.

Android Studio installs the app on your connected device and starts it.

-

Run the app from a command line

- -

Open a command-line and navigate to the root of your project directory. - Use Gradle to build your project in debug mode, invoke the assembleDebug build task - using the Gradle wrapper script (gradlew assembleRelease). - -

This creates your debug .apk file inside the module build/ - directory, named app-debug.apk.

- -

On Windows platforms, type this command:

- -
-> gradlew.bat assembleDebug
-
- -

On Mac OS and Linux platforms, type these commands:

- -
-$ chmod +x gradlew
-$ ./gradlew assembleDebug
-
- -

After you build the project, the output APK for the app module is located in - app/build/outputs/apk/ - -

Note: The first command (chmod) adds the execution - permission to the Gradle wrapper script and is only necessary the first time you build this - project from the command line.

- -

Make sure the Android SDK platform-tools/ directory is included in your - PATH environment variable, then execute: -

$ adb install app/build/outputs/apk/app-debug.apk

-

On your device, locate MyFirstApp and open it.

- -

That's how you build and run your Android app on a device! - To start developing, continue to the next -lesson.

- - -

Run on the Emulator

Whether you're using Android Studio or the command line, to run your app on the emulator you need @@ -168,23 +128,8 @@ device.

When you do, My First App appears on the emulator screen.

-

Run your app from the command line

-
    -
  1. Build the project from the command line. The output APK for the app module is located in - app/build/outputs/apk/.
  2. -
  3. Make sure the Android SDK platform-tools/ directory is included in your - PATH environment variable.
  4. -
  5. Execute this command: -

    -

    $ adb install app/build/outputs/apk/apk-debug.apk
    -

    -
  6. -
  7. On the emulator, locate MyFirstApp and open it.
  8. -
- - -

That's how you build and run your Android app on the emulator! - To start developing, continue to the next - lesson.

+

That's how you build and run your Android app on the emulator! +To start developing, continue to the next +lesson.