简体   繁体   中英

Why does my Android app icon display different in different Android device?how to keep it same?

I have set the icon resource in AndroidManifest.xml file like this

...

(because the project was established in eclipse before,then move to Android Studio,I do not know if the problem depend on IDE or others.and drawable-hdpi,drwable-mdpi,drawable-w720dp,drawable-xhdpi have the same icon,just for fit different dpi of Android device)

I did this,then I tested my app on Android 4.4,it display another icon,the icon not exist in the project at all,then I tested it in Android 5.1,the same icon display in it,finally I tested it in Android 6.0,it become normal,I am very confused why it do not display the icon I want in some other Android device

and later I found there are 5 different icon display in different Android device,maybe more,I do not know how to solve it...

I tried to set the same icon in the LAUNCHER Acticity,but it still did not work...rebuid the project,and all kinds of solution I have tried,it also still did not work...

who can help me ...

Check the Android documentation. You should create different icons in different folders. (hdpi, mdpi, xhdpi, xxhdpi, xxxhdpi.) Each folder will be use with the relevant screen.

Is it a Phonegap/Cordova App? Then have a look in the /res/icon/iOs/ folder. replace the icons there with yours. sometimes Cordova uses iOs icons for android builds.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM