App apears twice in the Applist after major codechanges:

Put your problem here if it does not fit any of the other categories.

App apears twice in the Applist after major codechanges:

Postby Ulathar » Sun Feb 20, 2011 11:54 pm

Hi folks,

i have a strange problem since i did a major overhaul of my app.
When i install the new version of my app on my phone or in the emulator, the app appears twice in the list of installed apps.
When i uninstall one of the 2 "versions" both disapear and when i reinstall the latest version, i have 2 icons in the list again.

i guess this is caused by the fact that i did some renaming to the packages and the app itself but the rest is still the same but i am not 100% sure... But even if this is the reaoson why this is happening, i have no clue on how to fix this (ie: get rid of the double display).

ideas?
Ulathar
Junior Developer
Junior Developer
 
Posts: 17
Joined: Sat Jun 05, 2010 9:55 pm

Top

Re: App apears twice in the Applist after major codechanges:

Postby blundell » Thu Feb 24, 2011 11:24 pm

Show us your manifest.

Uninstall all versions from your emulator.
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: App apears twice in the Applist after major codechanges:

Postby Ulathar » Fri Feb 25, 2011 7:56 pm

like i said, when i uninstall one of the two apperances, BOTH disapear (so i cant uninstall the second one).

Here is the manifest:

Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<manifest
    xmlns:android="http://schemas.android.com/apk/res/android"
    package="net.trais.android"
    android:versionCode="1000"
    android:versionName="1.0"
   android:installLocation="preferExternal"
   >
   
    <application
        android:icon="@drawable/appicon"
        android:label="@string/app_name"
        android:debuggable="true"
        >
        <activity
            android:name=".Splash"
            android:label="@string/app_name"
            android:theme="@style/Theme.Transparent"
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".Login"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity> 
        <activity
            android:name=".Trais"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".TraisMap"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity>
        <activity
            android:name=".TraisTrack"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity>
        <activity
            android:name=".NewTrack"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity>
        <activity
            android:name=".TraisPOI"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity>
        <activity
            android:name=".PoiNewSetPos"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity>
        <activity
            android:name=".PoiSetCategory"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity>
        <activity
            android:name=".PoiNewSetAttributes"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity>
        <activity
            android:name=".PoiNewSummary"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity>
        <activity
            android:name=".PoiSearchParams"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity>
        <activity
            android:name=".PoiOwn"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity>
        <activity
            android:name=".PoiOwnCreated"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity> 
        <activity
            android:name=".PoiOwnFav"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity>   
        <activity
            android:name=".PoiDetail"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity>
        <activity
            android:name=".PoiMap"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity>
        <activity
            android:name=".Comments"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
            >
        </activity>     
    </application>   
    <uses-sdk
        android:minSdkVersion="8"
        android:targetSdkVersion="8"
        android:maxSdkVersion="10"
    /> 
    <uses-permission
        android:name="android.permission.ACCESS_FINE_LOCATION"
    />
    <uses-permission
        android:name="android.permission.INTERNET"
    />
    <uses-permission
        android:name="android.permission.WRITE_EXTERNAL_STORAGE"
    />
    <uses-permission
        android:name="android.permission.ACCESS_WIFI_STATE"
    />
    <uses-permission
        android:name="android.permission.ACCESS_NETWORK_STATE"                 
    /> 
    <supports-screens
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"
        android:anyDensity="true"
    />
</manifest>
Ulathar
Junior Developer
Junior Developer
 
Posts: 17
Joined: Sat Jun 05, 2010 9:55 pm

Re: App apears twice in the Applist after major codechanges:

Postby blundell » Fri Feb 25, 2011 8:09 pm

You have two Activitys with intent filters of
Code: Select all
<intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
</intent-filter>


Therefore you see one application icon for each one.
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: App apears twice in the Applist after major codechanges:

Postby Ulathar » Sun Feb 27, 2011 7:26 pm

sorry for the late response, i was very busy :).

your tipp does the trick! thank you very much! looks like i made 0815 copy & paste mistake... you cant even imagine what i already tried and how often i looked over the code (including the manifest -.-).

looks like its time for some glasses :D.


may i ask you 2 other questions? than i wouldnt have to open a new thread for those issues...
Ulathar
Junior Developer
Junior Developer
 
Posts: 17
Joined: Sat Jun 05, 2010 9:55 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 15 guests