Feel free to import other samples to review how they have been developed This

Feel free to import other samples to review how they

This preview shows page 13 - 23 out of 69 pages.

Feel free to import other samples to review how they have been developed. This is one of the fastest ways to learn how to write Android applications.
Image of page 13

Subscribe to view the full document.

Using the Preinstalled AVD for Running Your Project In Chapter 2, “Setting Up for Development,” in the second step of the basic installation process of the “Configuring Your Development Environment” section, we recommended selecting all components for installation when installing Android Studio. One of the optional components for installation was a preconfigured Android Virtual Device. You will want to use this AVD profile to emulate when running the BorderlessButtons application. This AVD profile describes a default emulator configuration, and at the time of this writing, the preinstalled AVD configuration was a Nexus 5 running API 22 compatible with an x86 CPU. For the purposes of this example and other examples in this book, the provided AVD bundled with the default installation of Android Studio is sufficient. Note that the AVD configuration bundled with your installation may be different than the one used in these examples. You may also opt to create your own AVDs, too.
Image of page 14
Using the Preinstalled AVD for Running Your Project You do not need to create new AVDs for each application, only for each device you want to emulate. You can specify different screen sizes and orientations, and you can specify whether the emulator has an SD card, and if it does, what capacity the card has. For the exact steps to configure an AVD for your BroderlessButtons project and for learning about the different configuration options, check out the section titled “Creating an AVD” in Appendix B.
Image of page 15

Subscribe to view the full document.