A (175)

(Tuis.) #1

116 CHAPTER 4: Introduction to XML: Defining an Android App, Its Design, and Constants


If you do indeed need to switch between AVD emulators, after you have applied the Nexus One
AVD emulator to Eclipse ADT by using the Apply button, you can then use the Close button in
the bottom-right corner of the dialog, and then you can go back and use the Run As ➤ Android
Application work process to launch the ADT.


It is important to note that you can also use the Run button (underneath the Apply button) and
launch the Nexus One right there from within the Run Configurations dialog. This is a great
convenience, especially if you switch between AVD emulators frequently, as many developers do,
in order to see what their application design looks like on various Android devices.


Once you get the Nexus One AVD emulator running, you will see your Hello Universe Android
application running in it, as seen in Figure 4-10. You can see the custom application launcher icon
that you created in Chapter 3 in the left side of the title bar, which is called the Action Bar in Android
and is controlled by the Android ActionBar class. We will learn about Java classes in Chapter 5 and
the Action Bar in Chapter 7.


Figure 4-10. Viewing the HoloLight theme with Dark ActionBar in AVD

Free download pdf