Wrox Programmer Forums
| 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 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
  #1 (permalink)  
Old February 5th, 2010, 12:39 PM
Registered User
 
Join Date: Jan 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error when creating resources (Ch.3)

I add simple values at my /res/values/strings.xml

<color name="app_background">#FF0000FF</color>

It crash when run with error message
"Todo_List]Error in an XML file: aborting build."
  #2 (permalink)  
Old February 28th, 2010, 09:34 AM
Registered User
 
Join Date: Feb 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default String.xml file is the wrong place to put it

xnajoan,

You need to create a new colors.xml file in which this line would be. The strings.xml file will, to the best of my knowledge, only compile if it has string elements inside it. The new colors.xml file should still be in the values folder, however.

Irfan
  #3 (permalink)  
Old April 16th, 2010, 08:03 AM
Registered User
 
Join Date: Jan 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by wolverineik View Post
xnajoan,

You need to create a new colors.xml file in which this line would be. The strings.xml file will, to the best of my knowledge, only compile if it has string elements inside it. The new colors.xml file should still be in the values folder, however.

Irfan
thx irfan, really help


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch 04: creating custom controls error! ryan.webb BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 0 January 8th, 2010 02:05 AM
Ch 7 Creating background using imagefilter... cshu BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 July 13th, 2005 03:05 AM
CH. 4 Creating Local Variables mcauliff BOOK: Beginning ASP 3.0 1 March 3rd, 2005 03:57 PM
Ch. 4 -1. Creating a Table jfr BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 2 February 16th, 2005 02:26 PM
help: creating "resources" Rissa VB.NET 2002/2003 Basics 12 March 18th, 2004 05:22 PM





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