Android app shows default android icon in some devices

旧巷老猫 提交于 2020-01-02 04:35:09

问题


I upload an app in play store.Now i got a comment that it shows default android icon in some devices (galaxy s4,nexus 5 )instead of app icon.I placed app icon in drawable-ldpi,drawable-mdpi,drawable-hdpi,drawable-xhpdi and drawable-tvdpi. Default android icon is present outside resource folder as ic_launcher-web. While testing it showed the app icon itself in galaxy s4.But when it downloaded from play store it is showing default app icon.What I should do to correct this problem?


回答1:


Since app icon has very little impact on the system performance, I recommend that you to put a 256*256 icon in the default /res/drawable/ resource folder.




回答2:


You need to put the app icon in drawable-xxhdpi and drawable-xxxhdpi too.

Reference: http://developer.android.com/design/style/iconography.html




回答3:


I had the same problem and the issue was with app icon resource.

I had defined an adaptive icon in a mipmap-anydpi-v26 folder. Both for standard and round resources. For other devices I had standard launcher icon in respective mipmap-<density-qualifier>. And in AndroidManifest.xml

android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"

The default icon was displayed on Devices that had lower version of Android than 26 but launcher supported roundIcon. Cause this resource was not existing for this devices. Add ic_launcher_roundresource for all densities solved the problem



来源:https://stackoverflow.com/questions/20535249/android-app-shows-default-android-icon-in-some-devices

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!