I was wondering how to change the launcher icon in Android Studio.
Look in the application's AndroidManifest.xml file for the <application>
tag.
This application tag has an android:icon
attribute, which is usually @drawable/ic_launcher
.
The value here is the name of the launcher icon file. If the value is @drawable/ic_launcher
, then the name of the icon is ic_launcher.png
.
Find this icon in your resource folders (res/mipmap-mdpi
, res/mipmap-hdpi
, etc.) and replace it.
A note on mipmap resources: If your launcher icon is currently in drawable folders such as res/drawable-hdpi
, you should move them to the mipmap equivalents (e.g. res/mipmap-hdpi
). Android will better preserve the resolution of drawables in the mipmap folder for display in launcher applications.
Android Studio note: If you are using Android Studio you can let studio place the drawables in the correct place for you. Simply right click on your application module and click New -> Image Asset.
For the icon type select either "Launcher Icons (Legacy Only)" for flat PNG files or "Launcher Icons (Adaptive and Legacy)" if you also want to generate an adaptive icon for API 26+ devices.
Go to your project folder\app\src\main\res\mipmap-mdpi\ic_launcher.png
You will see 5 mipmap folders. Replace the icon inside of the each mipmap folder, with the icon you want.
Here are my steps for the task:
go to AndroidManifest.xml and change the android:icon="@mipmap/ic_launcher" to android:icon="@mipmap/(your image name)" suppose you have a image named telugu and you want it to be set as your app icon then change android:icon="@mipmap/telugu" and you have to copy and paste your image into mipmap folder thats it its so simple as i said
Go to AndroidManifest.xml
In the tag, look for android:icon tag.
Copy and paste your icon in drawable folder(available in res folder of your project).
Set the value of android:icon tag as
android:icon="@drawable/youriconname"
Voila! you are done. Save the changes and test.
Here is another solution which I feel is more sensible for those working on Android Studio:
That is it! You have a new logo for you app now.