Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8190221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:33:01+00:00 2026-06-07T03:33:01+00:00

I was making a simple text field and ‘send’ button to display whatever the

  • 0

I was making a simple text field and ‘send’ button to display whatever the user typed in the text field. The program is completely illustrated in the Android training tutorials by android.com.

Whenever I’m adding the Activity DisplayMessageActivity, I’m getting “Duplicate attribute” as an error. Here’s the code:

<application

      <activity android.name="DroidStart"/>
      <activity
       android:name="com.start.droidstart.DisplayMessageActivity"
        android:label="@string/title_activity_droid" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

Update: I fixed the problems that were pointed out, but I’m still getting the error. Here’s my current AndroidMainfest.xml:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.start.droidstart"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="8"
    android:targetSdkVersion="15" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" >
      <activity
       android:name="DroidStart"
       android:name="com.start.droidstart.DisplayMessageActivity"
       android:label="@string/title_activity_droid" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        </activity>
</application>

The error looks like this

Error parsing XML; duplicate attribute. type Android AAPT problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:33:02+00:00Added an answer on June 7, 2026 at 3:33 am

    You have at least two errors:

    1. Be sure to close your <application> tag.
    2. Use android:name, not android.name.

    So the first 3 lines should change from:

    <application
    
          <activity android.name="DroidStart"/>
    

    to

    <application>
    
          <activity android:name="DroidStart"/>
    

    Update:

    In your updated code, you have:

      <activity
       android:name="DroidStart"
       android:name="com.start.droidstart.DisplayMessageActivity"
    

    You are using android:name twice, which is why you are getting this error. You should probably change this to:

      <activity
       android:name=".DisplayMessageActivity"
    

    assuming DisplayMessageActivity is the class name of the Activity you which to refer to.

    Last, you forgot your manifest end tag: you should have </manifest> at the very end of your file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am making a user registration form with validation.thats my simple form field. <tr>
Making a simple application, so when the user logs out of Windows, it of
In C# i am making a simple text editor with line numbers. I want
Hey so i'm making a simple text game using the pdCurses library and a
I'm making a fairly simple text editor, and I have a question about my
I'm trying to create a simple text field for WYSIWYG editing. However, I only
I am making a web app for the user to create a simple orgchart.
What I am making is basically is a user profile that has a text
I am making simple grid like game ( grid is matrix 128x128) and matrix
I am making simple connection between two table - first one called users has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.