25 Mar 2012, 02:05
Generic-user-small

Leo (1 post)

Hello, I am learning Hello android ,there are several problems confuse me .
I am a new learner about android and I have just a little foundation in JAVA (I have learned Chapter 1-4 in and Stanford open course,made approximately 20 toy applet). While I am learning the book I feel that I’m just copying the code from the book to the eclipse and don’t understand much of them. Should I read more books about JAVA before I learn android?
Now I am stuck in the Sudoku.

This is the manifest,

<?xml version=”1.0” encoding=”utf-8”?>
<manifest xmlns:android=”http://schemas.android.com/apk/res/android” package=”org.example.sudoku” android:versionCode=”1” android:versionName=”1.0” >

<application
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" >
    <activity
        android:name=".Sudoku" 
        android:label="@string/app_name" >
        
            
<activity android:name=”.About” android:label=”@string/about_title” android:theme=”@android:style/Theme.Dialog”> <activity android:name=”.Prefs” android:label=”@string/settings_title”>

Eclipse says Multiple annotations found at this line: – The value of attribute “android:label” associated with an element type “activity” must not contain the ‘<’ character. – error: Error parsing XML: not well-formed (invalid token)
I don’t know how to fix it.

Somehow the error has been fixed…But I am still confused with the how to learn android.
Please help me and give me some advice,Thank you so much.

12 Apr 2012, 18:02
Burnette_ed_pragsmall

Ed Burnette (1316 posts)

I do recommend some introduction to Java if you’ve never used it before. See:

The error about the ‘<’ character was most likely caused by a missing or malformed quote character. Sometimes doing a format command (Ctrl+Shift+F) will make the error more obvious.

01 Aug 2012, 17:44
Generic-user-small

RamaKrishna R Kesara (1 post)

Also from what you have posted here.. looks like activity for Preferences was enclosed with in About. As Ed mentioned above if you formatted using (Ctrl+Shift+F), you should see

<activity android:name=".About" android:label="@string/about_title" android:theme="@android:style/Theme.Dialog" > </activity> <activity android:name=".Prefs" android:label="@string/settings_title" android:theme="@android:style/Theme.Black"> </activity>

I think earlier that you saw for multiple annotation might be because of mismatch of closing activity tag.

  You must be logged in to comment