Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android application manager shows wrong app name

Does anyone know why the application manager, found by going to settings->application manager, is showing the wrong name for my application? I installed my app twice under different names and with different application package names. I can see both named applications under the apps page, but the application manager is showing them as the same name. I need to know which is which so I can force close and uninstall the correct version of my application. Any ideas?

Here's the manifest of the DEMO version of my application, where string/app_name = package_DEMO:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="my.apps.package_DEMO"
    android:versionCode="1"
    android:versionName="0.0">

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

    <application android:label="@string/app_name"
        android:name="my.apps.package.MyApplication"
        android:icon="@drawable/ic_launcher"
        android:theme="@style/AppTheme"
        android:launchMode="singleTask"
        android:debuggable="true">

        <activity android:label="@string/app_name"
            android:configChanges="orientation|keyboardHidden"
            android:name="my.apps.package.MainActivity">

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

        <activity android:label="@string/app_name"
            android:configChanges="orientation|keyboardHidden"
           android:name="my.apps.package.SettingsActivity">
        </activity>

    </application>

</manifest>

And the original's manifest, where string/app_name = package:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="my.apps.package"
    android:versionCode="1"
    android:versionName="0.0">

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

    <application android:label="@string/app_name"
        android:name="my.apps.package.MyApplication"
        android:icon="@drawable/ic_launcher"
        android:theme="@style/AppTheme"
        android:launchMode="singleTask"
        android:debuggable="true">

        <activity android:label="@string/app_name"
            android:configChanges="orientation|keyboardHidden"
            android:name="my.apps.package.MainActivity">

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

        <activity android:label="@string/app_name"
            android:configChanges="orientation|keyboardHidden"
           android:name="my.apps.package.SettingsActivity">
        </activity>

    </application>

</manifest>
like image 624
mpellegr Avatar asked Aug 15 '13 15:08

mpellegr


2 Answers

I had this problem - i.e. that of the app name showing up incorrectly in Settings->Apps

I managed to fix it by rebooting the device.

My guess is that the android application manager was caching the 'old' name until a reboot. I confirmed this by changing the app name and redeploying - the old name shows in settings->aps until a reboot.

like image 128
Rob Nugent Avatar answered Nov 16 '22 01:11

Rob Nugent


It is probably because of your manifest file. If you copied your code and only refactored the package names, eclipse does not change the name of your application in the manifest file.

Either change directly, or use your string.xml files

android:label="@string/app_name"
like image 42
Canberk Avatar answered Nov 16 '22 03:11

Canberk