Errata

Head First Android Development

Errata for Head First Android Development

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.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
Printed Page 730
Code

Missing @Override annotations

Ellen Spertus  Mar 16, 2019 
Printed Page 761
one of the first lines of code in the private void ShowText(final String text) method

getting "'Builder(android.content.Context)' is deprecated" warning for code:

NotificationCompat.Builder builder = new NotificationCompat.Builder(this)
.setSmallIcon(android.R.drawable.ic_menu_compass)
.setContentTitle(getResources().getString(R.string.app_name))
.setContentText(text)
.setPriority(NotificationCompat.PRIORITY_HIGH)
.setVibrate(new long[] {1000,1000})
.setAutoCancel(true);

The code works, but Is or will there be an update to this code piece? Should I worry about this code being deprecated?

Raymond Kososki  Oct 31, 2020