Android Application Development in 24 Hours, Sams Teach Yourself
Fourth Edition
Copyright © 2016 Pearson Education, Inc.
ISBN-10: 0672337398
ISBN-13: 9780672337390
Warning and Disclaimer
Every effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied. The information provided is on an "as is" basis. The author and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book or from the use of the CD or programs accompanying it.
When reviewing corrections, always check the print number of your book. Corrections are made to printed books with each subsequent printing.
Corrections for all Printings
Pg / Error / Correction25 / 1: Intent = getIntent();
2: String message = Intent.getStringExtra("com.talkingandroid.MESSAGE"); / 1: Intent intent = getIntent();
2: String message = intent.getStringExtra("com.talkingandroid.MESSAGE");
27 / 15: Intent= getIntent();
16: String message = Intent.getStringExtra("com.talkingandroid.MESSAGE"); / 15: Intent intent = getIntent();
16: String message = intent.getStringExtra("com.talkingandroid.MESSAGE");
33 / 4: <Intent-filter>
5: <action android:name="android.Intent.action.SEND" />
6: <category android:name="android.Intent.category.DEFAULT" />
7: <data android:mimeType="text/plain" />
8: </Intent-filter> / 4: <intent-filter>
5: <action android:name="android.Intent.action.SEND" />
6: <category android:name="android.Intent.category.DEFAULT" />
7: <data android:mimeType="text/plain" />
8: </intent-filter>
34 / 6: Intent= getIntent();
7: if (Intent != null) {
8: if (Intent.hasExtra("com.talkingandroid.MESSAGE")) {
9: message = Intent.getStringExtra("com.talkingandroid.MESSAGE");
10: } else if (Intent.hasExtra(Intent.EXTRA_TEXT)) {
11: message = Intent.getStringExtra(Intent.EXTRA_TEXT);
12: }
13: } / 6: Intent intent = getIntent();
7: if (intent != null) {
8: if (intent.hasExtra("com.talkingandroid.MESSAGE")) {
9: message = intent.getStringExtra("com.talkingandroid.MESSAGE");
10: } else if (intent.hasExtra(Intent.EXTRA_TEXT)) {
11: message = intent.getStringExtra(Intent.EXTRA_TEXT);
12: }
13: }
126 / 24: return view; / 24: return textView;
This errata sheet is intended to provide updated technical information. Spelling and grammar misprints are updated during the reprint process, but are not listed on this errata sheet.
Updated 01/00/2012