Reputation: 246
I have an app icon saved in drawable as an xml file, it shows on most devices but some Huawei devices show the default launcher icon instead. This is my code in manifest
android:icon="@drawable/menu_icon"
android:roundIcon="@mipmap/ic_launcher_round"
Upvotes: 1
Views: 605
Reputation: 2728
This is because Huaweii requires round launcher icon. Add your app icon image within the android:roundIcon attribute! The reason why you get the default android icon is because you are calling it in your android:roundIcon attribute! –
For different api devices, the devices either uses round icon or default size icons based on the android version. It wont affect other devices! Please do select the answer as accepted so that others can know the solution.
Upvotes: 1
Reputation: 509
make sure you have added all the drawables to every dpi levels like below.
[]
Or the best practices is to use vector image, then you can reduce the size of application.
just import the .svg as xml file. just drag and drop into resource manager.)
refer: https://developer.android.com/studio/write/vector-asset-studio
Upvotes: 1