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 9000993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:22:44+00:00 2026-06-16T00:22:44+00:00

In the AndroidManifest file of my application, the main Activity ‘s android:name has always

  • 0

In the AndroidManifest file of my application, the main Activity‘s android:name has always been:

android:name=".MainActivity"

Recently, I have changed the app to use a library. All the code has been transferred to the library project so that I can offer a free and a paid version, both using the same code (except to some modifications).

Now the name of the main Activity in the manifest file is:

android:name="com.name.library.MainActivity"

Unfortunately, users are reporting now that they cannot open the updated app anymore on their phone. Android says: App not installed!

After some searching, I found the cause for this problem here: You cannot change an Activity‘s name without causing problems for other apps trying to use Intents for this app. I guess the users who report the problem have placed my app on their home screen and the launcher application doesn’t find the old Activity name anymore. Is that true?

But does this also affect the menu with all apps listed? Actually, Android should update the Activity‘s name on update, shouldn’t it?

And how to resolve this problem? My only idea is to create a new Activity with the old name and in onCreate(...), place the following code:

Intent i = new Intent(MainActivity.this, MainActivity.class);
i.setComponentName("com.app.library", "com.app.library.MainActivity);
startActivity(i);

But this is not a pleasant solution, obviously …

  • 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-16T00:22:44+00:00Added an answer on June 16, 2026 at 12:22 am

    I guess you could also use an activity-alias .

    <activity-alias
            android:targetActivity="com.name.library.MainActivity"
            android:name=".MainActivity"
            android:label="@string/label"
            android:icon="@drawable/icon">
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
        </intent-filter>
    </activity-alias>
    

    android:name should match the old activity name

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

Sidebar

Related Questions

I have a style applied to my whole application: AndroidManifest.xml: <application android:theme=@style/ApplicationStyle android:icon=@drawable/icon android:label=@string/app_name>
In my application, I have a Fragment which is attached to the main activity
I have the following AndroidManifest file... <?xml version=1.0 encoding=utf-8?> <manifest xmlns:android=http://schemas.android.com/apk/res/android package=net.obviam.droidz android:versionCode=1 android:versionName=1.0
recently I had an error, which was caused by a corrupted AndroidManifest.xml file. Is
I want to change the app typeface and I can't: AndroidManifest.xml ... <application android:icon=@drawable/ic_launcher
I am building an Android application and I have chosen to use flat flies
I have an Android application that is a TabHost with a WebView. I use
I followed this tutorial on changing the name of my Android Application by changing
Android SDK chose 2.3.3 AndroidManifest.xml file contents as follows <manifest xmlns:android=http://schemas.android.com/apk/res/android package=com.cyf.dialer android:versionCode=1 android:versionName=1.0
I have been able to create a *.apk file from my code, place the

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.