When one first creates a new project, that dialog lets you point to some external .PNG file, and then when that dialog completes, it generates 4 different pixel-sizes of ima
When making an Android app in eclipse, just right-click on the res
folder, click New -> Other
, and select Android Icon Set
under Android.
This allows you to make more icons (or replace any existing ones) easily.
In Android studio 0.8 and after
Right click on app folder then New > Image Asset
Browse for best resolution image you have in "Image file" field
hit Next The rest will be generated
File >In androidStudio Open your application(your project)
Go to res folder and then right click on that folder select the new tab in that go to image asset tab you will get asset studio display page .
Browse(select) the icon that you want get as app icon(no need to change the drawble folder) .
And then click next tab and finish.
For Android Studio 0.4.0
and later, click "File > New > Image Asset
".
Just in case anyone else visits this post I thought I'd describe what I did.
Right click on res folder > New image asset
browser to the icon. Click next
By default the icon goes to src/debug/res- keep this
In the project hierarchy, browse to src/debug/res and copy the files from the drawable* directories to the same directories in src/main and src/main
copy the src/debug/res/icon_name.png to the src/main and src/release directories
This is how I solved by creating an ic_launcher from a PNG image.
I converted a PNG image into SVG image by using this website https://image.online-convert.com/convert-to-svg.
I used the converted SVG image and converted it into a Vector Asset in Android Studio by, File > New > Vector Asset
. This converted the SVG image into an XML file.
I created the ic_launcher image by creating a new Image Asset in Android Studio by, File > New > Image Asset
. This created an ic_launcher in a square, round and an Adaptive icon from the XML file.
Note: At the time of writing I faced issues with the SVG image exported from Adobe XD. So I had to use the online converter. Adobe XD does not have xml export feature.