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 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

So I have a project in the Eclipse, with 2 classes, both of them
I have the following package on Eclipse: com.mortgageapp.projects.app I'm not interested about the package
Right now, I have two Eclipse projects - they both use Maven 2 for
In Eclipse I have two projects with the same package structure. In one of
I have several projects open in an Eclipse workspace. Like so: com.harbl.project.one com.harbl.project.two com.harbl.project.three
Suppose I have two Java projects in Maven / Eclipse: An open source application
I was wondering whether it was possible for projects in Eclipse to have multiple
I have close to about 20 projects in my Eclipse workspace. They are interdependent.
Suppose that you have a bunch of projects in your Eclipse workspace. Some are
I have eclipse 3.7.2 to work on PHP projects that are on remote Linux

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.