Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why am I still seeing old icon?

I am trying to update the ic_launcher.png file for my app. For some reason I still get this very small old version of the icon in the "App setting" on my phone:

enter image description here

Also when I see the uninstall screen the icon is not right:

enter image description here

But after hit 'uninstall' the confirmation screen's icon is good. enter image description here

Also the launcher icon looks fine on the Home screen when the app is installed.

enter image description here

like image 525
Red Cricket Avatar asked Apr 26 '16 04:04

Red Cricket


People also ask

Why do my icons change appearance?

The issue is generally caused by a file association error with . LNK files (Windows shortcuts) or . EXE files (Windows executable programs). If your icons changed immediately after installing a new program, you can try uninstalling the program and see if this fixes the problem.

How do you fix all desktop icons are the same?

First, click the "Start" button and then click "Computer". Now click "Organize" and then click "Folder and Search Options". Next, please click "View", uncheck "Hide extensions for known file types" and "Hide protected operating system files (Recommended)" and check "Show hidden files, folders, and drives".


2 Answers

You need to have the images for all kind of resolutions. And place those images in appropriate folders

in Folder res -> mipmap folders

  • mipmap-mdip - 48 X 48 ic_launcher.png
  • mipmap-hdip - 72 X 72 ic_launcher.png
  • mipmap-xhdip - 96 X 96 ic_launcher.png
  • mipmap-xxhdip - 144 X 144 ic_launcher.png

And call this icon in Manifest file as

android:icon="@mipmap/ic_launcher"

Make sure that you have all these above resolution images in appropriate folders. If you still face the problem, try uninstalling the existing apk from device. Clean and rebuild the project and rerun it on your device.

like image 109
Naveen T P Avatar answered Nov 07 '22 00:11

Naveen T P


Create mipmap folder in res directory right click on res folder => copy path and goto that directory and create this folder see in this image

Create folder here

After create this folder you can see this directory in android studio.

enter image description here

add this size of icon in your folder

LDPI - 36 x 36
MDPI - 48 x 48
HDPI - 72 x 72
XHDPI - 96 x 96
XXHDPI - 144 x 144
XXXHDPI - 192 x 192.

then add this icon in android manifest file

 <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".ActivityTwo">

        </activity>
    </application>
like image 35
Arpit Patel Avatar answered Nov 07 '22 01:11

Arpit Patel