Why am I still seeing the old icon?

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

enter image description here

Also, when I see the delete screen, the icon is wrong:

enter image description here

But after clicking delete, the confirmation screen icon is good. enter image description here

Also, the application icon is launched on the main screen when the application is installed.

enter image description here

+6
source share
3 answers

Rebooting my phone seems to have fixed the problem.

0
source

You must have images for all kinds of permissions. And place these images in the appropriate folders

in res folder → 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 the manifest file as

 android:icon="@mipmap/ic_launcher" 

Make sure that you have all of these resolution images in the appropriate folders. If you are still experiencing a problem, try uninstalling the existing apk from the device. Clean and rebuild the project and restart it on your device.

+6
source

Create the mipmap folder in the res directory, right-click on the rec => folder and copy path and go to this directory and create this folder, see this image

Create folder here

After creating this folder, you can see this directory in Android studio.

enter image description here

add this icon size to 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 to the 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> 
+4
source

All Articles