There is no need to shut down and restart the emulator every time you rebuild

There is no need to shut down and restart the

This preview shows page 22 - 30 out of 69 pages.

There is no need to shut down and restart the emulator every time you rebuild and reinstall your application for testing. Simply leave the emulator running in the background on your computer while you work in Android Studio and then redeploy using the Run button again.
Image of page 22

Subscribe to view the full document.

Building Your First Android Application Hello World! The source code for this chapter is taken from the MyFirstAndroidApp found on the download site.
Image of page 23
Creating and Configuring a New Android Project Follow the steps in the book to create the MyFirstAndroidApp project: 1. From the Welcome to Android Studio dialog that appears after launching Android Studio, choose Start a new Android Studio project listed within the Quick Start options. If you launch Android Studio and are brought into an already open project, rather than the Welcome to Android Studio dialog, be sure to close out of the project before launching Android Studio by selecting File , Close Project .
Image of page 24

Subscribe to view the full document.

Creating and Configuring a New Android Project (Cont’d)
Image of page 25
Creating and Configuring a New Android Project (Cont’d) 2. Choose an application name. The application name is the “friendly” name of the application and the name shown with the icon on the application launcher. Name the application My First Android App . This will automatically create a Project location folder named MyFirstAndroidApp , but you are free to change this name and location to one of your choosing.
Image of page 26

Subscribe to view the full document.

Creating and Configuring a New Android Project (Cont’d)
Image of page 27