Wrox Programmer Forums
|
BOOK: Professional Android 4 Application Development
This is the forum to discuss the Wrox book Professional Android 4 Application Development Reto Meier; ISBN: 978-1-1181-0227-5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 4 Application Development 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 13th, 2012, 11:10 AM
Registered User
 
Join Date: Aug 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default HelloWorldSample from Android 2

Just want to know if this is fixed in Android 4 book

The HelloWorld Sample portion from Android 2 code sample had a portion where the layout is set in code not in the XML. When it is compiled there are messages like

"LinearLayout cannot be resolved to a type"

Looks like there is a using missing etc. Is this resolved in the new book?
 
Old April 14th, 2012, 09:27 PM
Reto's Avatar
Wrox Author
 
Join Date: Oct 2008
Posts: 61
Thanks: 1
Thanked 7 Times in 6 Posts
Default

I purposefully left the import statements from many of the code snippets in both editions in order to make them a little more concise.

From the intro:
Quote:
To keep the code samples reasonably concise, I have not always included every import statement required in the code samples within the book. However the downloadable code samples do include all the required import statements. Additionally, if you are developing using Eclipse, you can use the keyboard shortcut Ctrl+Shift+O (Cmd+Shift+O) to insert the required import statements automatically.
You can download the code samples for this new edition, which are included within full projects, and have all the necessary import statements included within them.

Hopefully that makes them easier to understand and use than in the previous edition.
__________________
Reto Meier

Author, "Professional Android 4 Application Development", Wrox, ©2012, 2010, 2008
@retomeier





Similar Threads
Thread Thread Starter Forum Replies Last Post
Android on iPhone yazi BOOK: Beginning iPhone SDK Programming with Objective-C 1 December 14th, 2011 08:46 PM
android and internet daniel.hlima BOOK: Professional Android 2 Application Development 0 April 18th, 2011 05:05 PM
Cryptography and Android jhwong56 BOOK: Beginning Cryptography with Java 2 April 12th, 2011 09:10 PM
Android SDK/Android.bat does not find SWT.jar file chaoticandroid BOOK: Professional Android 2 Application Development 1 March 23rd, 2011 06:39 PM
i am new to android janardhan BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 2 July 29th, 2010 03:37 PM





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