0
I’m developing an app in Android Studio and when running the app on the smartphone, the icon that appears is the Android itself. How do I change this icon for one I have on my computer?
0
I’m developing an app in Android Studio and when running the app on the smartphone, the icon that appears is the Android itself. How do I change this icon for one I have on my computer?
7
Simply replace the icons that are present in the folder res/mipmap
.
The icon, in this case, is called ic_launcher
and ic_launcher_round
. The second uses rounded edges, is a round icon.
You can replace them or place your new icon with a different name. If you do this, just change the AndroidManifest
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 attribute roundIcon
as well as 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 you the icons in their proper dimensions (hdpi, mdpi, xhdpi, ...).
It’s very useful! :)
Browser other questions tagged java android
You are not signed in. Login or sign up in order to post.
Perfect itscorey. Thank you so much.
– user24136