Two icons showing when install android apk? (manifest issue?)

I have a problem where when I install my app two icons appear for the same app. I noticed this problem after I added an upgrade system to my game whereby users can purchase upgrades using coins collected in the game (I am using stream readers and writers to save the players money and stats).When I click on one of the icons the upgrade shop works fine, however when I click on the other it doesn’t save the coins that the player collects.

I think it may have something to do with the manifest but I am unsure on how to resolve this as I cant see any problems with the manifest. I have attached the manifest below, if anyone could help me resolve this I would be grateful,thank you for reading.

[33173-androidmanifestbackup.txt|33173]

1 Answer

1

hey , you have two main activity…

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

Remove this tag from any one of the activity.

Thanks.

Okay so I have removed the entire intent filter from the bottom activity the activity. Just building the apk now will report back in a couple of minutes thank you :).

Okay, so I have accepted your answer as solving the appearance of two icons, but now I have an issue where the one icon that does appear does not save the player's coins. It works fine when I run it in the editor but when I run it on the phone it does not save. Previously one of the icons would allow the app to run fine with saving and the other would not allow it to save. I assume I may have to open a new question for this but is there any immediate reason you think this may be happening?

Hey u got ur solution for player's coin ?

Not, had time to look at it the past few days. I will try and have a look to see if i can resolve it. otherwise i will post a question on here, unless you have any idea what it could be.