Wrox Programmer Forums
|
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 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 :)
 
Old March 4th, 2009, 11:58 AM
Reto's Avatar
Wrox Author
 
Join Date: Oct 2008
Posts: 61
Thanks: 1
Thanked 7 Times in 6 Posts
Default

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
@retomeier
 
Old March 5th, 2009, 11:44 AM
Registered User
 
Join Date: Feb 2009
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Default

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!
 
Old August 3rd, 2009, 07:03 PM
Registered User
 
Join Date: Aug 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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!





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





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