android修改桌面app图标的问题。

============问题描述============


我知道配置app图标的做法是在
manifest.xml中的

<application

        android:allowBackup="true"

        android:icon="@drawable/icons"

        android:label="@string/app_name"

        android:theme="@style/AppTheme" >

 android:icon="@drawable/icons"
这里改成相应的图片就可以了。。
但是今天遇到一个问题,就是我创建了一个工程,按照上述步骤修改了,
结果进入程序之后的图标确实修改了,但是桌面上的图标仍然是原来的,没有变化。。。

我又找了一份原来的可运行的工程,把其manifest.xml配置文件拷贝出来,贴到新的工程里面,图标就改变了。。。
很崩溃,这什么原因。。
我每次都clean的,并且真机上会卸载重装的。。
我的配置文件如下,程序中的图标已经修改,但是桌面上图标没有变化

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

    package="com.lxl.testapp"

    android:versionCode="1"

    android:versionName="1.0" >



    <uses-sdk

        android:minSdkVersion="7"

        android:targetSdkVersion="17" />



    <application

        android:icon="@drawable/showicon"

        android:label="@string/app_name"

        android:theme="@android:style/Theme.Light.NoTitleBar" >

        <activity

            android:name=".MainActivity"

            android:label="@string/app_name" 

            android:theme="@android:style/Theme.NoTitleBar.Fullscreen">

            <intent-filter>

                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />

            </intent-filter>

        </activity>

    </application>

</manifest>

============解决方案1============


卸载重载加重启手机。

有时候是这样的。

你可以找一台没装过的手机试试。

不过,如果application中的icon变了,那桌面图标一定是变了。

============解决方案2============


把工程里的bin目录删除,然后再clean

============解决方案3============


============解决方案4============


posted @ 2014-10-17 10:24  android开发教程  阅读(3211)  评论(0编辑  收藏  举报
我要啦免费统计