Errata
The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".
The following errata were submitted by our customers and approved as valid errors by the author or editor.
Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update
Version | Location | Description | Submitted By | Date submitted | Date corrected |
---|---|---|---|---|---|
Printed | Page & 1st paragraph |
Images on pages 10 and 11 of printed version are not correct. Note from the Author or Editor: |
Franco Bergomi | Sep 17, 2011 | Sep 30, 2011 |
Page 1 1st paragraph |
The 2nd to last word 'Android' is incorrectly written as 'Andorid'. Note from the Author or Editor: |
Derek Rodger | Jan 25, 2011 | ||
Printed | Page 5 2nd paragraph |
"javac _version" did not work for my system. "java -version" did. (Windows 7 64 bit) Note from the Author or Editor: |
Anonymous | Mar 08, 2012 | |
Page 10 Figures 1-3 & 1-4 |
Figures 1-3 & 1-4 are totally wrong and are actually copies of figure 1-2 Note from the Author or Editor: |
Anonymous | Sep 15, 2011 | ||
Page 11 In the Workspace paragraph |
"A workspace is a folder containing set of Eclipse projects" that should probably be 'sets' or 'a set' Note from the Author or Editor: |
Derek Rodger | Jan 25, 2011 | ||
Other Digital Version | 13 2nd paragraph |
It would be nice to expand on the package name field so that a developer might pick a good name as far as what they should do for testing and eventual deployment to end users. Note from the Author or Editor: |
Parick TenHoopen | Jan 31, 2011 | |
Other Digital Version | 18 5th paragraph |
In the section "Running a program on an Android Device" you mention that if you are running Linux, you will need to create a "rules" file. Note from the Author or Editor: |
Derek Rodger | Jan 25, 2011 | |
Other Digital Version | 23 2nd paragraph |
When launching DDMS in Eclipse Helios SR1, it is listed under "Other" under the Window > Open Perspective menu. Note from the Author or Editor: |
Parick TenHoopen | Jan 31, 2011 | |
Page 24 4th paragraph (not counting the caution box) |
The last sentence in the paragraph reads: Note from the Author or Editor: |
Derek Rodger | Jan 25, 2011 | ||
Page 31 4th paragraph |
"interactive" is mispelled "interactice"; here's the incorrect line Note from the Author or Editor: |
Ben Matteson | Jan 25, 2011 | ||
Page 39 1st paragraph |
I'm not sure, but maybe symmetry and not reflexivity should be mentioned here. So overriding equals() this way violates symmetry and not reflexivity? Note from the Author or Editor: |
Ali L. | Nov 04, 2011 | ||
Printed | Page 46 Top of the page |
In the implementation of the service() method of the TemplatedService() class, there should be a semicolon after the runService() method call. Note from the Author or Editor: |
Thomas Weisbach | Oct 03, 2011 | |
Printed | Page 50 1st paragram |
In the example describing the behavior of thrown exceptions, the text states that "control returns to getActions"; however, the uncaught exception which occurs in readPageFromNet() would cause control to be returned to the caller of readPageFromNet(), which is getPage() (not getActions()). Note from the Author or Editor: |
Karen Schaefer | Dec 23, 2012 | |
Page 59 public class AccessibleStranger |
The code contains the following line: Note from the Author or Editor: |
William Lynch | Oct 12, 2011 | ||
Printed | Page 123 3rd Para |
The books says that 3 static analysis tools are covered, however it then only goes on to describe FindBugs. Note from the Author or Editor: |
Steve Webb | Oct 27, 2011 | |
Printed | Page 151 2nd paragraph |
"Because the parameter vals is passed into the initButton method in the previous example (Figure 6-1),..." Note from the Author or Editor: |
Walter Falby | Dec 15, 2011 | |
Page 153 3rd comment // runs on the UI thread |
// runs on the UI thread Note from the Author or Editor: |
Emerson Wang | Nov 10, 2011 | ||
Printed | Page 154 1st and 2nd paragraphs |
In the first paragraph, a call to bar.setStatus is mentioned. That line of code is not in the example. Note from the Author or Editor: |
Walter Falby | Dec 15, 2011 | |
Page 160 Top paragraph |
"The marshaler's job is to write everything necessary to reconstruct the object state to the passed Parcel. Typically , this will mean expressing the object state in terms of the six primitive data types: byte, double, int, float, long, and String. " Note from the Author or Editor: |
Andy | Dec 25, 2011 | ||
181-182 final Dots dotModel = new Dots(); |
The variable dotModel is defined but never used in the code listing. Also on Pg 182, while defining the interface method onDotsChange(..) Dots d is passed in as parameter. In the method body, Dot d = dots.getLastDot(); is defined. There seem to be typos. Note from the Author or Editor: |
Rajive Jain | Sep 22, 2011 | Sep 30, 2011 | |
Page 182 3rd line |
3rd line on page 182: Note from the Author or Editor: |
Emerson Wang | Dec 05, 2011 | ||
Page 184 2nd paragraph |
According to the declaration on page 181, i.e., final Dots dotModel = new Dots(); Note from the Author or Editor: |
Emerson Wang | Dec 05, 2011 | ||
Printed | Page 190 5th Para |
'It is may me' should read 'It may be' Note from the Author or Editor: |
steve Webb | Oct 31, 2011 | |
Page 197 3rd paragraph, 3rd sentence |
Text reads "introduced a new a feature". The second "a" should be removed. Note from the Author or Editor: |
JamesPreston | Nov 23, 2011 | ||
Printed | Page 204,206 Canada |
On page 204, the factory method in the source code listing is named "createInstance". Note from the Author or Editor: |
Kimon Niflis | Nov 30, 2011 | |
Printed | Page 254 first example |
The example code: Note from the Author or Editor: |
Kimon Niflis | Dec 15, 2011 | |
Page 258 |
Based on the insert and update statements in pages 257 & 258 and the query results, the following SELECT statement selects the wrong column description: Note from the Author or Editor: |
Emerson Wang | Dec 14, 2011 | ||
Printed | Page 262 2nd text line |
States there are two important constants, however four are shown. Note from the Author or Editor: |
Steve Webb | Nov 09, 2011 | |
Printed | Page 263 in the last sentence of the section about the method onCreate |
The method 'createVideosTable' is mentioned. However, in the code sample this refers to there is no such method. The method 'createTable' was the method probably intended. This mistake is repeated on the top of page 264. Note from the Author or Editor: |
Thomas Weisbach | Nov 17, 2011 | |
Printed | Page 263 in the section on the method 'onUpdate' |
The method 'onUpdate' is mentioned, but there is no such method. Instead the method 'onUpgrade' is probably intended. This method is referred to three times in this paragraph, including one time on the subsequent page. Note from the Author or Editor: |
Thomas Weisbach | Nov 17, 2011 | |
Page 263 2nd paragraph |
The YouTubeDbHelper class in the following sentence has never been mentioned before in the book: Note from the Author or Editor: |
Emerson Wang | Dec 15, 2011 | ||
Page 263 Last paragraph |
The onUpgrade method for SimpleVideoDbHelper is very simple: it deletes the Note from the Author or Editor: |
Emerson Wang | Dec 15, 2011 | ||
Printed | Page 263 last paragraph |
The last paragraph incorrectly makes (several) references to the "onUpdate" method. I believe it is actually intending to reference the "onUpgrade" method instead. Note from the Author or Editor: |
Anonymous | Mar 06, 2012 | |
Printed | Page 267 |
The streetview calls have been deprecated and there is now a different mechanism to get streetview working. So the streetview menu in the app no longer works. Note from the Author or Editor: |
steve Webb | Nov 10, 2011 | |
Page 290 example code |
The Finch Video Example does not work, Note from the Author or Editor: |
Sebastian Wagner | Apr 04, 2011 | ||
Page 311 |
BaseColumns was treated as a class at two places in the following paragraph on page 311: Note from the Author or Editor: |
Emerson Wang | Dec 26, 2011 | ||
Page 316 1st paragraph |
Java is case sensitive. URIMatcher used three times in the following 1st paragraph should be replaced with UriMatcher: Note from the Author or Editor: |
Emerson Wang | Dec 28, 2011 | ||
Page 320 1st paragraph |
DatabaseHeIper extends SQLiteOpenHelper and thus DatabaseHelper.onUpgrade method should be called instead of DatabaseHelper.onUpdate method in the following 1st paragraph: Note from the Author or Editor: |
Emerson Wang | Dec 28, 2011 | ||
Page 321 |
Missing AUTOINCREMENT after INTEGER PRIMARY KEY in the following createTable method: Note from the Author or Editor: |
Emerson Wang | Dec 29, 2011 | ||
Page 325 |
"deletion" should be replaced with "update" in the following comment in the update method: Note from the Author or Editor: |
Emerson Wang | Dec 30, 2011 | ||
Page 342 |
"FinchVideoProvider" used in the following statement should be replaced with "FinchVideoContentProvider": Note from the Author or Editor: |
Emerson Wang | Jan 06, 2012 | ||
Printed | Page 348 deleteOld method |
deleteOld() tries to delete the old cached file like this: Note from the Author or Editor: |
Anonymous | Nov 17, 2011 | |
Page 352 |
In the following method, "initialValues" in the last return statement should be replaced with "values": Note from the Author or Editor: |
Emerson Wang | Jan 06, 2012 | ||
Other Digital Version | 1429 "A static declaration..." |
Chapter "Final and Static Declarations": Note from the Author or Editor: |
?eljko Trogrlić | Jan 09, 2012 |