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

  • Home
  • SEARCH
  • 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 4561838
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:07:52+00:00 2026-05-21T18:07:52+00:00

I have 2 projects in my Eclipse. Both of them have a activity called

  • 0

I have 2 projects in my Eclipse. Both of them have a activity called “MainActivity”. The weird thing is, when I tried to launch the 2nd app, the emulator showed an error and pointed it to the 1st app. I can bypass this problem by changing the activity name to something different. Then everything will be fine.

I suppose this is only a emulator problem. I haven’t tested it yet but I cannot image this happening on real devices, which will make Android totally unusable.

But still, I need to use the emulator and I’d like to keep the name MainActivity. Has anyone has the same experience before? Thanks in advance.

  • 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-05-21T18:07:53+00:00Added an answer on May 21, 2026 at 6:07 pm

    Do you also have the same package name?

    Applications are distinguished by their package names so you should change those on per-project basis.

    Update:

    In manifest package attribute is prepended to name attribute of Activity. Combined they must be the same as your full qualified class name.

    <manifest package="com.myapp">
        <activity android:name=".MyActivity"/>
    </manifest>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Right now, I have two Eclipse projects - they both use Maven 2 for
Most of our Eclipse projects have multiple source folders, for example: src/main/java src/test/java When
I have a series of Eclipse projects containing a number of plugins and features
I have Eclipse 3.3.2 with PDT doing PHP development. All projects that I create,
Is it possible in Eclipse to have some kind of packages (sets of projects)
In Eclipse, I have a workspace that contains all of my projects. Each project
I was wondering whether it was possible for projects in Eclipse to have multiple
How do I make a Groovy Google App Engine project in Eclipse? I have
I have various interrelated projects in my Eclipse Helios workspace. Some projects use the
I have a problem where Android projects I create in Eclipse are unable to

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.