2.6. Running the Welcome App

To run the app in an Android Virtual Device (AVD) for a phone, perform the steps shown in Section 1.9.1. Figure 2.25 shows the running app in the Nexus 4 AVD that you configured in the Before You Begin section. The app is shown in portrait orientation, where the device’s height is greater than its width. Though you can rotate your device or AVD to landscape orientation (where the width is greater than the height), this app’s GUI was not designed for that orientation. In the next chapter, you’ll learn how to restrict an app’s orientation and in subsequent chapters, you’ll learn how to create more dynamic GUIs that can handle both orientations.

Fig. 2.25 | Welcome app running in an AVD.

If you’d like, you can follow ...

Get Android™ How to Program, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.