Errata

Android Cookbook

Errata for Android Cookbook

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
online
Chapter 10, Example 10.22

boolean hasAnyPhone = Boolean.parseBoolean(cont.getString(columnIndexForHasPhone));

should be:

boolean hasAnyPhone = cont.getInt(columnIndexForHasPhone).equals(1);

See: https://developer.android.com/reference/android/provider/ContactsContract.ContactsColumns#HAS_PHONE_NUMBER

Ellen Spertus  Apr 21, 2020 
Printed Page 624
Recipe 15.7 (and to 15.11)

Notes should be added regarding the use of OpenStreetMap servers.

The OpenStreetMap server is intended for demonstration purposes only and not production code.

As such, OsmDroid has been banned from the OSM Tile Server. See:

https://wiki.openstreetmap.org/wiki/Osmdroid

Especially: "Note that to use OSM tiles, you need to change your user agent from "osmdroid" to your app name and maybe e-mail. "

OpenStreetMap request that all production applications use either their own server or a commercial server.

Richard Marsden  Apr 11, 2018