9.2 Test-Driving the Address Book App

Opening and Running the App

Open Android Studio and open the Address Book app from the AddressBook folder in the book’s examples folder, then execute the app in the AVD or on a device. This builds the project and runs the app.

9.2.1 Adding a Contact

The first time you run the app, the contact list will be empty. Touch the FloatingActionButton to display the screen for adding a new entry (Fig. 9.3). The app requires each contact to have a name, so the save () FloatingActionButton appears only when the ...

Get Android How to Program, 3/e 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.