Wrox Programmer Forums
|
BOOK: Beginning Android 4 Application Development
This is the forum to discuss the Wrox book Beginning Android 4 Application Development by Wei-Meng Lee; ISBN: 978-1-1181-9954-1
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning 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 June 6th, 2012, 06:55 AM
Registered User
 
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 1 Question

Chapter one HelloWorld Application. Gotta tell you I feel really dumb having to ask this question. Set up Eclipse and SDK, etc. no problem. Set target SDK to 4.0.3, added bold text to on step 9 and got "[I18N] Hardcoded string "[what i typed]" should be an @string resource".
Though maybe it was my SDK version so deleted original and set to 4.0 SDK.
Same error.
Strange that the code on the Android AIDE native app runs with no problem.
Any idea what I'm doing wrong?
 
Old June 6th, 2012, 08:35 PM
Registered User
 
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Follow up

Well, I loaded the project from the downloadable code and everything is fine. Still don't know why building from scratch using the directions didn't work for me.
 
Old June 24th, 2012, 10:38 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

That would be because they very strongly urge you to include all text displayed to the user and other things as strings, it will work that way, but it is bad practise
The reason for this is that when translating to another language or changing a value, you can do everything by changing the strings file, which is an order of magnitude easier





Similar Threads
Thread Thread Starter Forum Replies Last Post
Question on Chapter 5 chester8 BOOK: Expert Access 2007 Programming ISBN 978-0-470-17402-9 0 December 14th, 2011 12:18 AM
chapter 3 question adamshire BOOK: Professional Ajax 2nd Edition ISBN: 978-0-470-10949-6 1 July 29th, 2010 06:09 PM
A better example of Chapter 5 Question 6 dspearing BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 1 April 6th, 2010 08:16 PM
Chapter 5 Question 5 Will BOOK: Beginning Microsoft Visual C# 2008 ISBN: 978-0-470-19135-4 1 October 24th, 2009 09:18 AM





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