Professional Android 2 Application DevelopmentISBN: 978-0-470-56552-0
Paperback
576 pages
March 2010
This title is out-of-print and not currently available for purchase from this site.
|
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 |
---|---|---|---|---|
26 | Error in Text On page 26, in the tip box at line 4: The text refers to the "Manage..." button, but the name of the button is actually "Manager..." |
12/28/2010 | ||
53 | Error in Text On top of page, first paragraph: QUERTY should be QWERTY |
11/29/2010 | ||
80 | Error in Text In Figure 3.7 the state block "onSaveInstanceState" and "onRestoreInstanceState" should be swapped. |
3/9/10 | ||
108 | Error in Code Section 5: in the code listing for the initCompassView method, the variable 'r' is referenced before it is declared, in the line 'circlePaint.setColor(r.getColor(R.color.background_color));'. should read: Resources r = this.getResources(); circlePaint = new Paint(Paint.ANTI_ALIAS_FLAG); circlePaint.setColor(r.getColor(R.color.background_color)); circlePaint.setStrokeWidth(1); circlePaint.setStyle(Paint.Style.FILL_AND_STROKE); northString = r.getString(R.String.cardinal_north); |
12/31/2010 | ||
111-117 | Error in Text Ch.4, Drawable resources: The paragraph shows various "snippets" of code/xml (the listings), but forgets to mention how to actually "use" a drawable resource, e.g. referring to it in some xml layout or in some activity code. |
12/13/2010 | ||
127 | Error in Text Ch.10, 'Dynamically Updating Menu Items', 2nd paragraph, 1st sentence: in sentence: '[...] you can either find a reference to them in the onCreateOptionsMenu [...]' 'find' should be substituted in favor of 'store' or something similar. |
12/13/2010 | ||
129-130 | Error in Code Ch.4, Listing 4-29: All 3 occurences of 'menu.FIRST' should be 'Menu.FIRST', so not to issue compiler warnings as FIRST is static. The code invokes 'setIcon' method on a menu item from a context menu. But as said in following explanation, icons on those items are not displayed, while icons are displayed for context menu header. Should invoke 'setHeaderIcon' on context menu. |
12/13/2010 | ||
131 | Error in Text Ch-4, last sentence before listing 4-31: typo: 'MenuInflator' --> 'MenuInflater' |
12/13/2010 | ||
4 | 133 | Error in Text step. 6:Although the text says "For the code in Step 5 to work you need to increase the scope of the todoListItems and ListView control beyond the onCreate method", only ListView scope needs to increase. In step 5 todoListItems is not used at all. |
12/13/2010 | |
5 | 141 | Error in Text Listing 5-5: catpion should read ?Returning results from an Activity?. |
01/02/2011 | |
146 | Error in Text In Listing 5-7, line 5: android.intent.category.ALTERNATIVE_SELECTED Should be android.intent.category.SELECTED_ALTERNATIVE |
3/10/10 | ||
7 | 232 | Error in Code The text to initialize DATABASE_CREATE constant in earthquakeDatabaseHelper class has an aditional parenthesis, which provokes an SQLLiteException syntax error: + KEY_MAGNITUDE + " FLOAT), " Should read: + KEY_MAGNITUDE + " FLOAT, " |
4/14/2011 | |
8 | 276 | Error in Code Listing 8-12: case 1 should be: case 0 |
4/14/2011 | |
8 | 281 | Error in Code Step 5.1: "ContentResolver resolver" is not needed in this piece of code. Should be (all on one line): public EarthquakeOverlay(Cursor cursor) { |
4/14/2011 | |
8 | 283 | Error in Code Step 6: String earthquakeURI = ... Should be Uri earthquakeURI = EarthquakeProvider.CONTENT_URI; |
01/02/2011 | |
9 | 290 | Error in Note Replace both instances of MY_ACTION in the note to ORDER_PIZZA |
4/14/2011 | |
9 | 294 | Error in Code Step 5: Preferences.USER_PREFERENCE was not defined in pre-existing code |
01/02/2011 | |
9 | 296 | Error in Code Step 7.1: loadFromProviders Should be: loadQuakesFromProviderloadQuakesFromProvider |
01/02/2011 | |
9 | 297 | Error in Code Step 7.3: earthquakeCursor.deactivate() should not be bold AND insert the following additional line immediately before the above mentioned line. The inserted line should be bold: unregisterReceiver(receiver) |
4/14/2011 | |
13 | 450 | Error in Code listing 13-13: }, should be: }}, |
4/14/11 | |
450 | Error in Code Ch.13 p.450 listing 13-14: int networkType = networkInfo.getType(); should be: int networkType = activeNetwork.getType(); Replace "networkInfo" with "activeNetwork" |
4/14/11 | ||
13 | 451 | Error in Code 'Finding and Configuring Network Preferences and Controlling Hardware Radios': Prefix the sentence that starts, "You can find the current..." with "In some versions of Android, " |
4/14/11 |