Yehonatan Segal
Yehonatan Segal

Reputation: 307

Android application icon becomes blurry when creating APK

My app icon becomes blurry when creating an APK. I tried to download an APK of an Android app that has a very sharp icon and placing it inside of my APK, but I got the same result.

Why does my icon become blurry while I see it very sharp in other app using the same icon?

Of course I used multiple icon size:

  1. ldpi (120 dpi) (Low density screen) 36 x 36 px

  2. mdpi (160dpi)(Medium density screen) 48 x 48 px

  3. hdpi (240 dpi)(Highdensity screen) 72 x 72 px

  4. xhdpi (320 dpi) (Extra-high density screen) 96 x 96 px

but it didn't help. How can I fix it?

Thank you

Upvotes: 22

Views: 18119

Answers (6)

Pranav Bhat
Pranav Bhat

Reputation: 57

If you are getting blurred image while compiling and running from android studio make sure that if you find mipmap-anydp folder delete that!.

Upvotes: 1

Rayane Santos
Rayane Santos

Reputation: 11

What works for me was use "density" instead "qualifier" in config.xml icon tag:

<icon density="ldpi" src="www/res/icons/android/drawable-ldpi-icon.png" />

Upvotes: 1

lepe
lepe

Reputation: 25210

Another reason it may be blurry:

If you are using an xml icon inside drawable, check for the values android:width and android:height, be sure they are large enough (for example: '128dp').

Upvotes: 2

anoop ghildiyal
anoop ghildiyal

Reputation: 819

As all answers suggesting that please check all drawable and mipmap folders but there is something else in my case that I had an extra folder mipmap-anydpi-v26 in which I also have the app icon that icon was creating the problem. So I just simply remove the mipmap-anydpi-v26 folder and after that everything is working fine.

Upvotes: 4

peitek
peitek

Reputation: 884

A little late to the party, but if someone searches for this issue, you might want to check if your icons are in /drawable or /mipmap. Latter really bumps the quality up, if you haven't had your launcher icons in there before.

See also:

Upvotes: 5

Yehonatan Segal
Yehonatan Segal

Reputation: 307

I found my mistake. I should have known that android:thumbnail is not android:icon, and the thumbnail resolution should be higher (I couldn't find documentation),

Upvotes: 2

Related Questions