Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2
This is the forum to discuss the Wrox book Professional Android Application Development by Reto Meier; ISBN: 9780470344712
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 1st, 2010, 01:28 PM
Registered User
 
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter11 Earthquake project did not build. How I got it working

Hi,

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.

Burt
 
Old April 7th, 2010, 08:55 PM
Registered User
 
Join Date: Apr 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The Compass app has the same problem, you have to delete src\com\paad\compass\R.java.
 
Old October 30th, 2010, 05:21 AM
Registered User
 
Join Date: Jul 2010
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi Burt, you say "Chapter11 Earthquake project did not build. How I got it working"
Did you mean chapter 10? Chapter 10 code builds ok for me, but won't run. Emulator and Nexus One say "The application Earthquake (process.com.paad.earthquake) has stopped unexpectedly. Please try again. Force close." I get the same error for chapters 7, 8, 9, and 10. But I can build and run chapter 5 and 6 Earthquake code! So at least some of it works. Sure would like to get the Earthquake code in chapters 7, 8, 9, and 10 working.
Vince




Similar Threads
Thread Thread Starter Forum Replies Last Post
VB2005 Project Build Error ashg657 Visual Basic 2005 Basics 1 August 6th, 2006 06:57 PM
How to build project ? kubadebe Visual C++ 2005 0 May 9th, 2006 03:44 AM
How to Build Web Classes/project into DLL? JaCkSoN Tay VS.NET 2002/2003 2 August 11th, 2005 04:55 AM
I cant build and start my project snowydust VB.NET 2002/2003 Basics 1 November 28th, 2004 04:23 AM
How to Build Project Lee8mm VS.NET 2002/2003 2 July 2nd, 2003 07:18 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.