![]() | Problems in Sudoku |
|
25 Mar 2012, 02:05
Leo (1 post) |
Hello, I am learning Hello android ,there are several problems confuse me . This is the manifest, <?xml version=”1.0” encoding=”utf-8”?>
<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) Somehow the error has been fixed…But I am still confused with the how to learn android. |
|
12 Apr 2012, 18:02
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
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 |

