I'm developing an app in Android Studio and while running the app on my smartphone, the icon that appears is Android's own. How do I change this icon for one I have on my computer?
I'm developing an app in Android Studio and while running the app on my smartphone, the icon that appears is Android's own. How do I change this icon for one I have on my computer?
Just replace the icons that are present in the res/mipmap
folder.
The icon, in this case, is called ic_launcher
and ic_launcher_round
. The second uses rounded edges, it's a round icon.
You can replace them or put your new icon under a different name. If you do this, simply change the AndroidManifest
in TAG <Application>
.
<application
android:allowBackup="true"
android:icon="@mipmap/icon_name" <!-- icone aqui -->
android:label="@string/app_name"
android:roundIcon="@mipmap/icon_name_rounded" <!-- icone aqui -->
android:supportsRtl="true"
android:theme="@style/AppTheme">
You can use the roundIcon
attribute as well as you can remove it if you do not want to use it.
You can also create icons using this site: Asset Studio: Icon Launcher
You can export your image to the site, define styles (borders, shadows ...) and it will generate the icons in their proper dimensions (hdpi, mdpi, xhdpi, ...).
It's very useful! :)