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

You are currently viewing the BOOK: Beginning Android 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 February 20th, 2012, 10:48 PM
Registered User
 
Join Date: Feb 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ch.2 pg.43 Try It Out

Below is my code and I keep getting an error next to line 12 stating "Element type "activity" must be followed by either attribute specifications, ">" or "/>"."
I have looked over and over for anything that is different that what is shown in the book and I can't find anything. I saw no other threads relating to this issue so I am wondering am I missing something??





<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="net.learn2develop.Activities"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="10" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity android:name=".MainActivity"
android:label="@string/app_name"
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Activity2"
android:label="Activity 2"
<intent-filter>
<action android:name="net.learn2develop.ACTIVITY2" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>
</manifest>
 
Old February 21st, 2012, 10:40 AM
Registered User
 
Join Date: Feb 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nevermind I slept on it and I figured it out. It was as simple as putting a ">" at the end of this code:

<activity android:name="Activity2"
android:label="Activity 2" >





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch. 5 pg. 96 What happened? MGriessler BOOK: Professional ASP.NET MVC 3 2 December 9th, 2011 09:53 PM
Pg 43 - Visual Studio 2005? etm1109 BOOK: Professional ASP.NET Design Patterns 1 March 11th, 2011 05:30 AM
Problem with excercise in page 43 (Ch. 2) Luachan BOOK: Beginning PHP 6, Apache, MySQL 6 Web Development ISBN: 9780470391143 8 January 25th, 2010 03:02 PM
CH 5 pg 160 wadesmart BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 8 November 12th, 2003 11:23 PM
CH 3 pg 76 wadesmart BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 2 October 26th, 2003 08:46 PM





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