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.

Image

Fig. 2.25 | Welcome app running in an AVD.

If you’d like, you can follow the steps in Section 1.9.3 to run the app on an Android device. Though this app will run on an Android tablet AVD or a tablet device, the app’s GUI will occupy only a small part of a tablet’s screen. Typically, for apps that run on both phones and tablets, you’ll also provide a tablet layout that makes better use of the screen’s available space, as we’ll demonstrate in later chapters.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.148.144.214