O'Reilly logo

Android Application Development For Dummies, 2nd Edition by Donn Felker, Michael Burton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing Your Application

You’ve done it — you’ve written your first application. In the next sections, you install your app on the emulator and put that baby into action!

Running your app in an emulator

When you run your application in an emulator, the ADT is smart enough to remember the last launch configuration and uses it by default. (If you ever need to change the launch configuration — say to launch a different activity or application — turn to Chapter 3.)

The emulator and Eclipse speak to each other through the Android Debug Bridge (adb). You installed the adb with the Android Development Tools (ADT) in Chapter 2.

It’s time to install this app on the emulator. Follow these steps:

1. In Eclipse, choose RunRun or press Ctrl+F11 to run the application.

You see the Run As window, shown in Figure 5-3.

2. Choose Android Application and click OK to start the emulator.

Figure 5-3: The Run As configuration dialog box.

9781118417454-fg0503.eps

3. Wait for the emulator to load and then unlock the emulator.

If you’re unsure how to unlock the emulator, refer to Chapter 3. When the emulator is unlocked, your application starts and the emulator runs your program, as shown in Figure 5-4.

tip.eps If your application doesn’t start, rerun the application by choosing Run⇒Run or pressing Ctrl+F11.

Figure 5-4: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required