Android icon does not change

I have developed several Android apps, and this has never happened to me, and it bothers my mind. I have an application launch icon with the name ic_launcher on android several folders (xhdpi, hdpi, mdpi and ldpi). My Android manifest is as follows:

<application android:icon="@drawable/ic_launcher" android:label="@string/app_name" > <uses-library android:name="com.google.android.maps" /> 

The application icon is just the default android. I cleaned the project, updated, built from several different computers, used ant to crunch png and nothing.

I'm starting to think that this is a problem with cached files on my Android or something (I use Miui on my S2), but I'm not sure.

Does anyone have any better suggestions?

+6
source share
9 answers

The problem was that the MIUI application icons are cached. I searched and deleted the existing icon, and now everything works as expected.

+1
source

I had the same problem and checked for similar messages. I deleted the bin directory and just recompiled eclipse and sent the new apk to the device.

+6
source

Change the theme if you are using MIUI. The icon will be updated.

+2
source

Andorid will accept images based on the DPI (Pixel Density) you use since you use S2 . I assume that you have placed the required image in x-hdpi and check.

+1
source

If I were you, I was going to remove these icons from the res folder and create an application without them. If it can be installed on the device, it means that perhaps something like a yes cache, if it is not, I suggest you change the name of your icon in the manifest and use another to see it.

+1
source

I had the same problem and rebooting the device made a new icon.

+1
source

Do you see the "classes / res-cache" folder in the root of your project? If yes, delete it. Helped me.

0
source

This also happens on some HTC devices. This is because the launcher caches the icon and does not update it even after your modification.

You can kill your launcher process to solve this problem. This works on my HTC One.

0
source

If you use Z-launcher, go to Z-launcher settings, then change the theme of the icon to something else and return to the desired value, the icons will be updated

0
source

Source: https://habr.com/ru/post/923551/


All Articles