Beginning Android Development

10-17

This chapter provides a quick introduction to Android and Android application development, bridging fundamental Java concepts with Android ones. It discusses Activities, Layouts, and Views along with other building blocks of Android applications. It teaches users how to write, build, and run event-driven applications on emulators and on physical Android devices. Other topics covered include LogCat debugging, Intents, and the Activity Lifecycle.

Source Code

The following .zip download contains the full source code for each programming example provided in this chapter.

Download the Source Code (Chapter 7)

Contents:

FirstApp v1: Our first Android application. Only contains MainActivity.

FirstApp Complete: Contains the complete source code for Chapter 7, including MainActivity, SecondActivity and CustomView.

Importing Instructions:

Click Here to see how to import the above projects into your workspace.

Downloads

By error, the download link provided in Chapter 4 (p. 108) directs you to this page. The following .zip download contains all assets used in Chapter 4 (p. 108). This download is NOT needed for Chapter 7.

Download the Assets (Chapter 4)

Known Issues

If you get an error message saying ‘No system images installed…’ please see the following:

http://stackoverflow.com/questions/13488419/unable-to-create-android-virtual-device

Additional Information

1. For a list of all known in-text errors, please see the Errata.

This section will be updated as needed. Please post on our forums if you need assistance or explanation on topics covered in this chapter.