I'd purchased the 2nd edition book, but was having a problem getting the Earthquake app to build since currently I'm working with Android 2.0 and not 2.1. I'll revisit that when I get a chance and work on getting the version 2 example to build with Android 2.0.
So I grabbed the source from this edition, and immediately I had a problem with the downloaded code.
I was getting errors related to IEarthquakeService and R already being defined.
In the project as downloaded both IEarthquakeService.java and R.java existed in the source tree. These were found in src/com/paad/earthquake along with the rest of the source files for the project.
These files are both auto-generated, so should not exist in the main source tree. At least removing them from the downloaded source code allowed me to build and run the project.
There was another minor issue, the downloaded project did not set a target, so I fixed that as well.
There are still a few warnings, but the application now builds and runs in the emulator, including hitting the website to retrieve the data.