1

When you code on Android Studio there is a standard icon symbol ( green Android ). I know how to change it. When I go to manifests.xml and look at this line

       android:icon="@mipmap/ic_launcher"

the icon launcher must be in the directory "mipmap". When I go to mipmap, there are several .png files of ic_launcher. Such as

ic_launcher.png(hdpi)
ic_launcher.png(mdpi)
ic_launcher.png(xhdpi)
ic_launcher.png(xxhdpi) 
ic_launcher.png(xxxhdpi)

The question now is which of these files do I have to replace in order to get a new custom icon? Thank you.

Blnpwr
  • 1,793
  • 4
  • 22
  • 43
  • 1
    all of them but obviously they should have different sizes – Selvin Dec 19 '16 at 11:55
  • Ah, I see. What is the sense of having several files? Is it because of the quality ? When it's because of the sizes: Which png file is being used when I install my app on my smartphone? Does is automatically recognize which file to use ? – Blnpwr Dec 19 '16 at 11:59
  • It would be better to do some internet search ... search about mipmaps on android ... – Selvin Dec 19 '16 at 12:00
  • OK, I will, thank you very much. – Blnpwr Dec 19 '16 at 12:01
  • here is the clean explanation of what you are looking for , http://stackoverflow.com/questions/11752997/how-mdpi-hdpi-xhdpi-folder-works – Darshan Soni Dec 19 '16 at 12:03
  • Ah, I was looking for such a good explanation. Thank you!!! – Blnpwr Dec 19 '16 at 12:07

3 Answers3

4

You should use the Image Asset wizard. This allows you to add an Image Launcher which is the kind of image for your App's logo

Image Asset Pop-up Menu

Image Asset will ensure all resolutions and sizes for the logo.

Carlos Jiménez
  • 148
  • 1
  • 9
1

They are categorized according to the size of screen for example tablet users uses xxhdi ic_launcher.png and hdpi ic_launcher.png for small size screen like 3 inches screen. If you are developing cool apps then you need to resize your icons for all these mentions size otherwise you can make any size and call them in manifest.

1

All of them because each one of them means that the icon will be displayed on the device depending on the size of the screen that is "from the smallest to the largest".

A tip if you are going to use the same icon for each one, first create the bigger image and then reduce it, I think the same android studio is reduced when you use the option because of the icon I think you can call application icon.

The biggest image is 512, this is the image of the web that will be displayed in the Play Store

Abraham.P
  • 113
  • 1
  • 6