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 May 2nd, 2009, 09: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>
 
Old May 2nd, 2009, 09:54 AM
Reto's Avatar
Wrox Author
 
Join Date: Oct 2008
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
The Following User Says Thank You to Reto For This Useful Post:
archergin (May 2nd, 2009)
 
Old May 2nd, 2009, 10: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.





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 03:54 AM
NuSOAP Help : XML error parsing WSDL on line 2 Odys PHP How-To 0 March 16th, 2007 04:11 PM
JSTL XML parsing error pankajbrathi JSP Basics 1 August 29th, 2006 07:35 AM





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