Home
CommonsWare

What We Offer

General Info

Warescription

Legal & Attribution

Content © 2008 CommonsWare, LLC.

Design © 2006 by Studio7designs.com via Opensourcetemplates.org

Errata for The Busy Coder's Guide to Android Development

A quick reminder: if you see problems in the book that are not listed here, report them via the Book Bug Bounty program!

Version 0.9 - June 2008

The Kindle, and to a lesser extent the PDF, have some problems with formatting of source code in the examples. If you cannot read the source code in the ebook, download the source separately. This is also useful if you would like to compile and run any of the samples.

Version 1.0 - July 2008

  1. On page 26-27, the "And We Attach These To Java...How?" section references a fictitious snicklefritz.xml — this name has no relevance to any example in this chapter. It's just a name.
  2. On page 106, the text refers to the example setting the background color of the list to the selected hue. The example was rewritten to change divider thickness instead of background color, but we forgot to change the one mention of the background color.
  3. In various places in the book, the EditText class is incorrectly referred to as EditView.

Version 1.1 - August 2008

See problems #1-3 above

Version 1.2 - September 2008

See problem #3 above. Also:

  1. On page 7, where it says there are "five key items", it should be "seven key items"
  2. In the chapter on Maps, in the "Drawing the ItemizedOverlay" section, the "fourth bullet" should actually be the "last bullet"
  3. On page 12, the second paragraph refers to com.commonsware.android where it should refer to com.commonsware.android.search to line up with the example shown at the top of the page
  4. On page 42, the first bullet refers to R.id.rb1 — this is not referencing the example shown below it, but rather just an arbitrary possible radio button ID
  5. On page 60, the second paragraph refers to 16 in two places where it should be 15.
  6. On page 223, the bulleted list of parameters to query() is missing the HAVING parameter.
  7. On page 225, count() should be getCount(), first() should be moveToFirst(), next() should be moveToNext(). Also, the code example is missing result.moveToFirst(); between the query and the while loop to get the Cursor properly positioned, and it to has an erroneous next() that should be moveToNext().

Version 1.3 - Late September 2008

  1. Page 25's second paragraph should read: "With that in mind, it's time to break out the XML and learn how to lay out Android activity views that way."
  2. Page 41 is missing a verb — the end of the last sentence of the first paragraph of "The Activity" should read "which is where your first activity will go."
  3. Page 60 has three bullets, the second and third of which are repeated. The third should actually be android:layout_witdh="fill_parent".
  4. Page 76 indicates that the Spinner choices can be selected via clicking on the left and right D-pad buttons. This is no longer the case — the only way to choose an item from the spinner is to activate it (e.g., click the center D-pad button) and choose an option from the dialog.
  5. Pages 80-81 show horizontalSpacing and columnWidth values as pure numbers, when they should be dimensions (e.g., 100px).
  6. On pages 93, 128, and 397, ViewInflate should be changed to LayoutInflater.
  7. On Page 107, the screenshot is incorrect, probably taken from the subsequent example. The screenshot should show the three-starred item with an all-caps label.
  8. The third line of Page 122 shows a 0 that is not in monospace font, and so may appear to look like an O.
  9. Pages 174 and 396 refer to an obsolete UIThreadUtilities class.
  10. On page 213, the sample code for the ReadWriteFileDemo is cut off. If you wish to see the full listing, the easiest solution is to download the source code.
  11. On page 229, where it says Resources.getColor(R.dimen.forest_green), it should really say Resources.getColor(R.color.forest_green).
  12. On pages 275, 281, and 402, startSubActivity() should be changed to startActivityForResult().
  13. On pages 275, 318, and 398, broadcastIntent() should be changed to sendBroadcast().
  14. Page 287 uses ALTERNATE_CATEGORY and ALTERNATIVE_CATEGORY instead of CATEGORY_ALTERNATIVE, while page 288 uses DEFAULT_CATEGORY instead of CATEGORY_DEFAULT./li>
  15. The Pick sample application (in the Introspection chapter) indicates that it needs special permissions to be able to pick contacts &mdash this is not the case with Android 1.0r1.

Version 1.4 - Early November 2008

  1. On page 96, the book refers to contentView where it should refer to convertView.
  2. On page 137, please ignore the backslash that accidentally was added at the end of the page.
  3. On page 150, the sentence "For example, from the Inflation sample project, here is menu called sample.xml:" is missing the word "a" between "is" and "menu".