Yayayaya
Yayayaya

Reputation: 246

My app icon is not showing on some devices - why?

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

Answers (2)

Prajwal Waingankar
Prajwal Waingankar

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

Prabudda Fernando
Prabudda Fernando

Reputation: 509

make sure you have added all the drawables to every dpi levels like below. [enter image description here] 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

generate as assets: enter image description here

Upvotes: 1

Related Questions