NeedSolution
NeedSolution

Reputation: 43

Android, icon been duplicate when i install my app on the device

I try to install the app that i develop on my device (Htc desire) and i see that the icon of the app is duplicate

what i need to change to don't late that happen?

how could i delete one of the icon?

Thanks for helping!!

Upvotes: 4

Views: 7849

Answers (6)

Rahi Padariya
Rahi Padariya

Reputation: 1

force stop your launcher from settings - app manager and clear cash data of launcher and check your problem is resolved

Upvotes: 0

Edward Chiang
Edward Chiang

Reputation: 1163

I came up this issue today, I am using Gradle.

I found out there was a folder ./build/manifests/debug/AndroidManifest.xml was generated from gradle build, and it had duplicate intent-filter of category launcher.

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

...

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

One of it was came by gradle dependencies compile project. So I went back and check dependencies project and remove it, and the problem solved.

Upvotes: 17

Joachim Pfeiffer
Joachim Pfeiffer

Reputation: 31

Android's Launcher app creates an icon for each Activity in your Application that includes the intent filter android.intent.category.LAUNCHER.

Remove this intent filter from all Activities that should not be launched. In other words, define this intent filter in your main Activity, and in your main Activity only.

Upvotes: 3

Md Maidul Islam
Md Maidul Islam

Reputation: 2304

try to use this ,

<intent-filter>
    <action android:name="android.intent.action.(your action )" />
    <category android:name="android.intent.category.DEFAULT" />
</intent-filter>

and you have to use ur main activity

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

let me comments if any issue.

Upvotes: 0

Niranj Patel
Niranj Patel

Reputation: 33238

for change icon of app..

<application android:icon="@drawable/icon" android:label="@string/app_name">

see this line in your menifest file.. and change "@drawable/your_icon_name" instead of "@drawable/icon"

Upvotes: 1

Houcine
Houcine

Reputation: 24181

do you use the default icone of android , or u have change the app's icon from the manifest ?

if that's right , try using the default icon of android , and then see if that will duplicate the app's icon or not

Upvotes: 0

Related Questions