Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set icon for Android application

Tags:

android

icons

How can I set an icon for my Android application?

like image 421
V I J E S H Avatar asked Mar 18 '11 10:03

V I J E S H


People also ask

Can you change the icon of an application?

Right-click on the shortcut and select “Properties” from the dropdown menu. Navigate to the “Shortcut” tab. Select “Change Icon” at the bottom of the window.


2 Answers

If you intend on your application being available on a large range of devices, you should place your application icon into the different res/drawable... folders provided. In each of these folders, you should include a 48dp sized icon:

  • drawable-ldpi (120 dpi, Low density screen) - 36px x 36px
  • drawable-mdpi (160 dpi, Medium density screen) - 48px x 48px
  • drawable-hdpi (240 dpi, High density screen) - 72px x 72px
  • drawable-xhdpi (320 dpi, Extra-high density screen) - 96px x 96px
  • drawable-xxhdpi (480 dpi, Extra-extra-high density screen) - 144px x 144px
  • drawable-xxxhdpi (640 dpi, Extra-extra-extra-high density screen) - 192px x 192px

You may then define the icon in your AndroidManifest.xml file as such:

<application android:icon="@drawable/icon_name" android:label="@string/app_name" > ....  </application>  
like image 83
Liam George Betsworth Avatar answered Sep 21 '22 00:09

Liam George Betsworth


Add an application launcher icon with automatic sizing.

(Android studio)

Go to menu File* → NewImage Assets → select launcher icon → choose image file.

It will automatically re-size.

Done!

like image 43
Arshid KV Avatar answered Sep 20 '22 00:09

Arshid KV