Android Programming The Big Nerd Ranch Guide, 3rd Edition

(Brent) #1
Running on the Emulator

27

Running on the Emulator


To run an Android application, you need a device – either a hardware device or a virtual device. Virtual
devices are powered by the Android emulator, which ships with the developer tools.


To create an Android virtual device (AVD), choose Tools → Android → AVD Manager. When the AVD
Manager appears, click the +Create Virtual Device... button in the lower-left corner of the window.


In the dialog that appears, you are offered many options for configuring a virtual device. For your first
AVD, choose to emulate a Nexus 5X, as shown in Figure 1.15. Click Next.


Figure 1.15  Choosing a virtual device


http://www.ebook3000.com

Free download pdf