Icon not shown in launcher

In my case it was not showing because i decide to simplify by joining 2 intent-filter elements:

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

With this declaration in the manifest, the app is installed but the app icon is not installed, regardless application attributes icon and roundicon are correct or not.

Action Main need to be on its own xml element like this:

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

You need to have your icons in the mipmap folder like this:

mipmap

Also I suggest you use Image Asset to import your icon:

File -> new -> Image Asset

image asset


Remove

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

Replace with

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

Tags:

Icons

Android