Efficient Android Threading

Errata for Efficient Android Threading

Submit your own errata for this product.


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
ePub
Page -
Basic Message Passing

In the code snippet under Basic Message Passing LooperActivity contains a static inner class "private static class LooperThread extends Thread", method of this class is calling a function in the outer class named "doLongRunningOperation". static inner classes donot have implicit access to outer class methods. Thanks

Note from the Author or Editor:
The method doLongRunningOperation should be included in the LooperThread class. Change to be made: Move ------ private void doLongRunningOperation() { // Add long running operation here. } ------ so that it comes after ----- Looper.loop(); } -----

Anonymous  Jun 15, 2014 
PDF
Page 43
Example code

There is a missing exclamation mark before an expression, which makes the example invalid: Thread.currentThread().isInterrupted() should be prefixed with an exclamation mark, like this: !Thread.currentThread().isInterrupted()

Anders Goransson
Anders Goransson
O'Reilly Author 
Jun 15, 2014