ic_launcher.png,eclipse自动给小米手机重新安装运行,显示的还是旧图标

【问题描述】写了个小程序,写完想改换一下图标,就把各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 36px
  • drawable-mdpi (160 dpi, Medium density screen) - 48px x 48px
  • drawable-hdpi (240 dpi, High density screen) - 72px x 72px
  • drawable-xhdpi (320 dpi, Extra-high density screen) - 96px x 96px
  • drawable-xxhdpi (480 dpi, Extra-extra-high density screen) - 144px x 144px
  • drawable-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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值