Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | 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
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 2nd, 2009, 10:46 AM
Registered User
 
Join Date: May 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default Chapter 2: ToDo Example - Error Parsing XML

I GOT THE ERROR IN THE CODE LINE HIGHLIGHTED IN RED. ANY HELP IS APPRECIATED. THANK YOU.
ERROR Error parsing XML: unbound prefix main.xml Todo_List/res/layout line 7 aapt Problem


highlighted in red.

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<EditText android:id="@+id/myEditText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
andorid:text="New To Do Item"
/>
<ListView
android:id="@+id/myListView"
andorid:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
Reply With Quote
  #2 (permalink)  
Old May 2nd, 2009, 10:54 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
Default

Hi Archergin,
You've typo'd the word 'android' and 'andorid' in a couple of places, that's what's causing the error. I've highlighted the lines you need to change below, just change it to android and you should be good to go!

Code:
<EditText android:id="@+id/myEditText"
  android:layout_width="fill_parent" 
  android:layout_height="wrap_content"
  andorid:text="New To Do Item"
/>
<ListView
  android:id="@+id/myListView" 
  andorid:layout_width="fill_parent"
  android:layout_height="wrap_content"
/>
Hope that helps!
__________________
Reto Meier

Author, "Professional Android 4 Application Development", Wrox, ©2012, 2010, 2008
@retomeier
Reply With Quote
The Following User Says Thank You to Reto For This Useful Post:
archergin (May 2nd, 2009)
  #3 (permalink)  
Old May 2nd, 2009, 11:01 AM
Registered User
 
Join Date: May 2009
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Boy that was quick reply to the problem and that too by the author! Thanks Reto.
Reply With Quote
Reply


Thread Tools
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
Chapter 6 Todo List removeItem abowman BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 4 February 5th, 2010 11:18 AM
Issues with Chapter 2 Todo List .add() on key listener Swak BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 2 January 22nd, 2010 06:43 AM
Error in php xml parsing... caught PHP How-To 0 April 12th, 2007 04:54 AM
NuSOAP Help : XML error parsing WSDL on line 2 Odys PHP How-To 0 March 16th, 2007 05:11 PM
JSTL XML parsing error pankajbrathi JSP Basics 1 August 29th, 2006 08:35 AM



All times are GMT -4. The time now is 10:12 AM.


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