Red Cricket
Red Cricket

Reputation: 10470

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

Upvotes: 7

Views: 2775

Answers (4)

AouledIssa
AouledIssa

Reputation: 2824

Icon size will depend on your phone DPIs make sure you provide all supported sizes.

Upvotes: 0

Arpit Patel
Arpit Patel

Reputation: 8057

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>

Upvotes: 4

Red Cricket
Red Cricket

Reputation: 10470

Restarting my phone seems to have corrected the problem.

Upvotes: 2

Naveen T P
Naveen T P

Reputation: 7285

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.

Upvotes: 6

Related Questions