Android Manifest File ERROR and unable to see it?

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Android Manifest File ERROR and unable to see it?

Postby siLent » Fri Jun 19, 2009 1:40 pm

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. <?xml version="1.0" encoding="utf-8"?>
  3.  
  4. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
  5.  
  6.     package="com.helloandroid.android.newsdroid"
  7.  
  8.       android:versionCode="1"
  9.  
  10.       android:versionName="1.0">
  11.  
  12.     <application  android:icon="@drawable/icon">
  13.  
  14.         <activity android:debuggable="true"
  15.  
  16.          android:enabled="true"
  17.  
  18.         class=".FeedsList" android:label="@string/url_editor">
  19.  
  20.             <intent-filter>
  21.  
  22.                 <action android:name="android.intent.action.MAIN" />
  23.  
  24.                 <category android:name="android.intent.category.LAUNCHER" />
  25.  
  26.             </intent-filter>
  27.  
  28.         </activity>
  29.  
  30.         <activity class=".URLEditor" android:label="@string/url_editor" />
  31.  
  32.         <activity class=".ArticlesList" android:label="@string/articles_list"/>
  33.  
  34.     </application>
  35.  
  36.     <uses-sdk android:minSdkVersion="3" />
  37.  
  38. <uses-configuration></uses-configuration>
  39.  
  40. </manifest>
  41.  
  42.  
Parsed in 0.034 seconds, using GeSHi 1.0.8.4


Hello Developers,

The above code is my manifest for my project i get the error "Tag <activity> missing required attribute name."
on lines 7, 15 and 16. ive been trying to renew the file but i get the same errors i am currently using
SDK 1.5 mn3 maybe somone that has this experience could help me

best regards!
Its not how you feel about me around your friends but around you.
siLent
Freshman
Freshman
 
Posts: 2
Joined: Tue Feb 03, 2009 3:08 am
Location: California

Top

Postby nmc » Fri Jun 19, 2009 5:27 pm

The correct syntax is:
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2. <activity android:label="My activity" android:name=".MyClass" />
  3.  
  4.  
Parsed in 0.000 seconds, using GeSHi 1.0.8.4
nmc
Senior Developer
Senior Developer
 
Posts: 154
Joined: Thu Nov 27, 2008 8:30 pm
Location: Germany

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 6 guests