Do you think you've discovered an error in this book?
Please check the list of errata below to see if we've already addressed the error. If not,
please submit the error via our
Errata Form.
We will attempt to verify your error; if you're right, we will post a correction below.

Chapter

Page

Details

Date

Print Run

40

Error in CodeThere is a line of code missing for Steps 6-8. The highlighted line should be inserted as follows in each step:

public void onCreate(Bundle icicle) {
super.onCreate(icicle);

// Inflate your View

4/27/09

65

Error in CodeIn the first snippet, the final (shaded) line should read:

android:configChanges="orientation|keyboardHidden"

4/27/09

96

Error in CodeIn the last shaded section, the second line should read:

circlePaint.setColor(r.getColor(R.color.background_color);

And the following line should be moved from its current location to become the first line in the highlighted section: