Set the application icon

  1. Home
  2. chevron_right
  3. Snippets
  4. chevron_right
  5. Set the application icon
To set the application icon in Android you have to open the project’s Manifest.xml file and add the following attribute to the application tag:

<application android:icon="drawable resource">

Before you do that make sure you add the icon image in one of your drawable directories.. If you called your icon: app_icon.png then the application tag should look like this:

<application android:icon="@drawable/app_icon.png">

I hope this helps someone 🙂

PS: pay attention to your resources names.. use “_” as separator instead of “-” or space, otherwise you will get errors in your project.

Menu