Reputation: 6429
I'm changing the app launcher icon and have modified the res/mipmap/ic_launcher
icons using the instructions. In Android Studio, I see the correct modified icon.
However, the original default icon is still being shown on the device, not the new one that I have tied to ic_launcher
. My manifest is using pointing to the new values AFAICT.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="app.anytune.rxsongbrowsertrials">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
....
</manifest>
Why isn't the ic_launcher
icon being used?
Upvotes: 1
Views: 6856
Reputation: 1126
Try importing your new icon with this plugin, and rename it like customIcon, set replace @mipmap/ic_launcher for @drawable/customIcon . extension isn't needed, make sure to replace it in rounded and normal
https://plugins.jetbrains.com/plugin/7658-android-drawable-importer
Here you have a example from one working project
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher_new"
android:label="AMVT App Móvil"
android:roundIcon="@drawable/ic_launcher_new"
android:supportsRtl="true"
android:theme="@style/AppTheme">
also if you need to create a simple icon you can use this tool Android Asset Studio
Upvotes: 0
Reputation: 6429
I found the error. Using the Image Asset Studio tool it created my new launch icon in the the ic_launcher resources for both the normal (res/mipmap/ic_launcher) and round versions (res/mipmap/ic_launcher_round) versions in the following resolutions: dpi, dpi, xhdpi, xxhdpi, xxxhdpi
. These are all png files though, so something may still be wrong with these files, as I'm expecting them to be .xml files.
However, it did not update the anydpi-v26
resolution. This was still referring to the original drawable with the template image. I needed to manually update the foreground tag to use my new drawable.
Upvotes: 1