Run Your App

This lesson teaches you to

In the previous lesson, you created an
Android project that displays "Hello World." You can now run the app on a real
device or an emulator.

Run on a real device

Set up your device as follows:

Connect your device to your development machine with a USB cable.
If you're developing on Windows, you might need to install the appropriate USB driver for your
device. For help installing drivers, see the OEM
USB Drivers document.

Note: On Android 4.2 and newer, Developer
options is hidden by default. To make it available, go
to Settings > About phone and tap Build number
seven times. Return to the previous screen to find Developer options.

Run the app from Android Studio as follows:

In Android Studio, click the app module in the Project window and then
select Run > Run (or click
Run in the toolbar).

That's "hello world" running on your device!
To start developing, continue to the next
lesson.

Run on an emulator

Before you run your app on an emulator, you need to create an
Android Virtual Device (AVD)
definition. An AVD definition specifies the characteristics of an Android phone,
tablet, Android Wear, or Android TV device that you want to simulate in the
Android Emulator.