Stephane Mathis
Stephane Mathis

Reputation: 6622

Android ldpi device should use mdpi resource?

I have published an app which have an mdpi, hdpi, xhdpi and xxhdpi image for the app icon. I have received some feedback that on ldpi devices my icon wasn't used and the default one from android is used.

Why is that ? My app has a drawable-ldpi folder but it is empty. Should I delete it ? Is this specific to the launcher icon ?

EDIT : I don't have any image in the drawable folder, only xml shape or selector. I have see this issue with a ldpi screen of 240 x 320 pixels (Samsung Galaxy Y running Android 2.3.6). I'm talking about this application : http://code.google.com/p/morpion-1vs1/ (the code is public because otherwise I should pay for the repository, I know the activities are a bit messy)

Here is the icon used : enter image description here

Upvotes: 1

Views: 1095

Answers (1)

David Manpearl
David Manpearl

Reputation: 12656

Put a 36x36 pixel size version of your application launcher icon "j5oDi.png" into "drawable-ldpi".


The Launcher icon sizes are described here: Launcher Icons -> Size and Format

You should have icon files in each of those resource folders at various sizes:

  • res/drawable-ldpi (120 dpi - Low density screen): 36x36 px
  • res/drawable-mdpi (160 dpi - Medium density screen): 48x48 px
  • res/drawable-hdpi (240 dpi - High density screen): 72x72 px
  • res/drawable-xhdpi (320 dpi - Extra-high density screen): 96x96 px.

Upvotes: 2

Related Questions