Reputation: 155
I'm a beginner in Android development. I was trying to develop an android application in Eclipse Indigo. I want to open a new screen when the user clicks a button. So I added a new activity, and suddenly after adding the new activity, this error appeared. I saw similar questions here, and what I understood was, the XML file should not contain more than one manifest tag and application tag. My file contains neither and I don't understand what happened. Please help me..
Here is my Android Manifest XML
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.e.dropdown"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="17" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="com.e.dropdown.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="com.e.dropdown.ClickActivity"
class=".ClickActivity"
android:label="@string/screen2">
</activity>
</application>
</manifest>
Upvotes: 0
Views: 595
Reputation: 13805
class=".ClickActivity"
Remove above line from below code
<activity
android:name="com.e.dropdown.ClickActivity"
class=".ClickActivity"
android:label="@string/screen2">
Upvotes: 1
Reputation: 3591
remove class=".ClickActivity"
you dont need that in order to start new activity
Upvotes: 4