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

来源:互联网 发布:数据库创建索引 编辑:程序博客网 时间:2024/04/30 22:06
【问题描述】写了个小程序,写完想改换一下图标,就把各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
原创粉丝点击