Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
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.
Reply With Quote
  #3 (permalink)  
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 07:09 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.