Question: I have a problem with my app launcher icon. Launcher icon is not shown on device. Here is my AndroidManifest.xml:

```
<application
    android:allowBackup="true"
    android:label="@string/app_name"
    android:icon="@mipmap/ic_launcher"
    android:name=".HamrahBankAnsarApplication"
    android:theme="@style/AppTheme">

    <activity
        android:name=".activity.LoginActivity"
        android:label="@string/app_name"
        android:configChanges="orientation|keyboardHidden"
        android:launchMode="singleTop"
        android:clearTaskOnLaunch="true"
        android:screenOrientation="landscape"
        android:windowSoftInputMode="adjustResize">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <activity
        android:name=".activity.MainActivity"
        android:label="@string/app_name"
        android:screenOrientation="landscape"
        android:configChanges="orientation|keyboardHidden"
        android:finishOnTaskLaunch="true" >
    </activity>

</application>

```

The confusing point is when I move  

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

to the MainActivity tag, the launcher icon is displayed. But the launcher activity is LoginActivity and it must be opened before MainActivity.  

Can anybody help me with this problem?  

Thanks in advance.

Answer: 
Make sure your icon is in all resolution folders like below:

```
 res/...
    mipmap-ldpi/...
        ic_launcher.png
    mipmap-mdpi/...
        ic_launcher.png
    mipmap-hdpi/...
        ic_launcher.png
    mipmap-xhdpi/...
        ic_launcher.png
    mipmap-xxhdpi/...
        ic_launcher.png

```
set below the line in your application tag below `android:icon="@mipmap/ic_launcher"`

```
    android:roundIcon="@mipmap/ic_launcher"

```

It will help you a lot. Happy Coding!!!