【问题描述】写了个小程序,写完想改换一下图标,就把各drawable文件夹里的ic_launcher.png文件都换了。
模拟器下运行已经正确的换成新图标了。但是用eclipse自动给小米手机重新安装运行,显示的还是旧图标。
【问题分析】这是小米系统的bug(桌面图标缓存)!!!!!郁闷,害得折腾了1个小时!
【解决方案】啥都不用干,重启手机即可
转载:http://blog.csdn.net/qq1028850792/article/details/17471439
If you intend on your application being available on a large range of devices, you should place your application icon into the different res/drawable...
folders provided. In each of these folders, you should include a 48dp sized icon:
drawable-ldpi
(120 dpi, Low density screen) - 36px x 36pxdrawable-mdpi
(160 dpi, Medium density screen) - 48px x 48pxdrawable-hdpi
(240 dpi, High density screen) - 72px x 72pxdrawable-xhdpi
(320 dpi, Extra-high density screen) - 96px x 96pxdrawable-xxhdpi
(480 dpi, Extra-extra-high density screen) - 144px x 144pxdrawable-xxxhdpi
(640 dpi, Extra-extra-extra-high density screen) - 192px x 192px
You may then define the icon in your AndroidManifest.xml
file as such:
<application android:icon="@drawable/icon_name" android:label="@string/app_name" >
....
</application>
参考:http://stackoverflow.com/questions/5350624/set-icon-for-android-application