114 CHAPTER 4: Introduction to XML: Defining an Android App, Its Design, and Constants
Running Your HelloUniverse App: Using Your AVD
The easiest way to “run” your Android application is to right-click on the HelloUniverse project folder,
which will give you a context-sensitive menu containing all of the things that you can do in Eclipse
relative to your HelloUniverse Android project.
As you can see in Figure 4-8, there is a “Run As” option two-thirds of the way down the menu, and it
has a sub-menu with two important options. The first sub-menu contains the “Android Application”
option. This runs your Android application in the currently active (selected) AVD emulator. If you
have defined more than one AVD emulator, which we in fact did back in Chapter 2 when we defined
the Neptune Pine smartwatch emulator to show you how to “scratch define” an unsupported AVD
emulator, you can select which one you want to use using the Run Configurations sub-menu option.
Figure 4-8. Right-click on the HelloUniverse project folder and select the Run As ➤ Android Application menu sequence
This is the reason that the other important sub-menu is the Run Configurations option, which
opens the Run Configurations dialog that shows you all of the AVD emulators you have defined, and
allows you to select which one you want to use and to set it to be your default or active AVD for your
Eclipse ADT IDE.