Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | 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
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 4th, 2009, 11:50 AM
Registered User
Join Date: Feb 2009
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default CHAPTER 2 page 26 -27

I am having trouble identifying why my Android SDK does not automatically implement the Hello World UI layout and add the "Hello World" text into the program as implied by the text between pages 26 - 27.

pg 27:
"If everything is working correctly, you'll see a new Activity running in the emulator, as shown in Figure 2-6" Figure 2-6 shows a working Hello World program with the text "Hello World, HelloWorld"

How is this even possible when I haven't yet implemented the necessary code? Did I miss something? How could the SDK know exactly what I wanted to see based only on the instructions for project creation laid out on pages 25 - 26?

Please explain as I have broken my head on this.

A separate thread is posted asking about "icicle" vs "savedInstanceState"

Thank you :)
Reply With Quote
  #2 (permalink)  
Old March 4th, 2009, 11:58 AM
Reto's Avatar
Wrox Author
Points: 287, Level: 5
Points: 287, Level: 5 Points: 287, Level: 5 Points: 287, Level: 5
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Oct 2008
Location: London, United Kingdom
Posts: 61
Thanks: 1
Thanked 7 Times in 6 Posts

This should work if you're using Eclipse with the ADT plugin installed.

It works because selecting 'Create new Android Project...' from the New Project menu actually runs a sort of macro that creates dummy project that already contains some sample code. The sample code implements the Hello World application described.

If you're using Eclipse and the ADT you should be getting the 'Hello World' shell program if you use the New Android Application Wizard, if not let me know and we'll try and figure out why :)
Reto Meier

Author, "Professional Android 4 Application Development", Wrox, ©2012, 2010, 2008
Reply With Quote
  #3 (permalink)  
Old March 5th, 2009, 11:44 AM
Registered User
Join Date: Feb 2009
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts

Thank you very much Reto for answering my questions. I think something had gone awry with my installations of eclipse, the adt, and the jdk. Because this morning I tried it all over again (updating software, etc) and voila! It worked.

Something else I may have missed previously: when running the program, of course the emulator starts up. All I had on the screen of the G1 emulator was the "ANDROID" text. LOL, this is embarrassing but I suppose I did not account for the fact that the emulator TRULY emulates the phone, down to the actual bootup sequence! I assumed it would run the program right away. So that's all my fault there.

Anyway can I delete this embarrassing question from the forum? ha ha! jk

Thanks again, Reto!
Reply With Quote
  #4 (permalink)  
Old August 3rd, 2009, 07:03 PM
Registered User
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Well, my embarrassment is doubled, because even after going through everything again, it still does not work for me. It looks as though the sample code is not showing up at all.

I am using the Eclipse Java EE Ide, build 20090621-0832. I have gone into the preferences and directed the application to the SDK location, and it lists Android 1.1, Android 1.5, and Google APIs, so that looks to have been set up correctly, I believe.

I tried going through the update process again, to reinstall the Developer Tools from the Google site, but it just said there were no available updates, so that appears to have installed correctly as well.

Any ideas what I may have missed? Thanks in advance!
Reply With Quote

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
where are the source code for Chapter 27 ? jamesxd BOOK: Professional ASP.NET 2.0 and Special Edition; ISBN: 978-0-7645-7610-2; ISBN: 978-0-470-04178-9 1 June 20th, 2008 08:23 AM

All times are GMT -4. The time now is 05:27 PM.

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