In Step 5.2, which shows the implementation of the
refreshQuakeLocations() method, contains the following code:
Code:
Double lat =
earthquakes.getFloat(EarthquakeProvider.LATITUDE_COLUMN) * 1E6;
Double lng =
earthquakes.getFloat(EarthQuakeProvider.LONGITUDE_COLUMN) * 1E6;
GeoPoint geoPoint = new GeoPoint(lng.intValue(),
lat.intValue());
However, looking at the API documentation for GeoPoint (
http://code.google.com/android/add-o.../GeoPoint.html ) I see that the parameters to the constructor are (latitude, longitude) not (longitude, latitude).
The code should be updated as follows:
Code:
GeoPoint geoPoint = new GeoPoint(lat.intValue(),
lng.intValue());
The code on the publisher's web site also contains this error.