0

I have a sample android application codebase. I want
to change the app icon when it's installed on the android phone
I see that under a folder there are 5 different types of icons
listed 1. hdpi 2. mdpi 3. xhdpi 4. xxhdpi 5. xxxhdpi
I want to change the icon. Where can I search for available
android icons and get all these different sizes for it? Is there any good recommended resource for it?

joseph
  • 147
  • 7
  • Does this answer your question? [Generate all size of android icon](https://stackoverflow.com/questions/38479325/generate-all-size-of-android-icon) – Alireza Pir Jul 24 '21 at 12:04

2 Answers2

0

In android studio; right click on the drawable folder then new, then vector assets. it will pop up a dialogue box, there you will see all the options.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Aryan
  • 11
  • 1
  • 3
0

Just get the icon as a jpg, then go to the mipmap folder, right click on it, click on new image asset, and after making suitable modifications (optional), click next, click finish. All the variants will be automatically generated.

Richard Onslow Roper
  • 5,477
  • 2
  • 11
  • 42
  • Thanks That worked. But I have a question. When I created a new image asset it automatically generated a new folder. So now there is two folders under the `mipmap` and it seems android studio automatically picked the latest one. How did that happen? Probably I can delete the older image asset – joseph Jul 24 '21 at 13:22
  • Oh yes. You should delete the old one. – Richard Onslow Roper Jul 24 '21 at 13:33
  • You see there will be vector assets named ic_launcher.xml in the anydpi folder. They are important. So you should just consider deleting the default image assets and then name your new assets ic_launcher – Richard Onslow Roper Jul 24 '21 at 13:34