zoukankan      html  css  js  c++  java
  • miui下始终显示默认的ICON

    首先有人说是MIUI里面做了缓存,我本想让朋友第一次安装一下我更改后的应用,没有得逞。

    本程序的AndroidManifest.xml 相关配置如下:

        <application
           android:name=".MOAApplication"
            android:icon="@drawable/moa"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.Light.NoTitleBar" >
            <activity android:name=".LoginActivity"
                        android:screenOrientation="portrait" >
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
    
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>

    后来将写在application的icon移动到launcher activity即可解决。如下:

    <application
           android:name=".MOAApplication"
            android:label="@string/app_name"
            android:theme="@android:style/Theme.Light.NoTitleBar" >
            <activity android:name=".LoginActivity"
                android:icon="@drawable/moa"
                        android:screenOrientation="portrait" >
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
    
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
  • 相关阅读:
    Extjs面板和布局初探
    XAMPP下apache部署网站,多个虚拟机(空间)配置
    安全配置织梦系统初探参考[转载]
    windows系统如何真正隐藏文件夹[转载]
    Siamese-RPN论文阅读
    线段树求和
    算法要点随记
    map使用示例
    算法准备之c++ sort使用示例
    编程要点随记
  • 原文地址:https://www.cnblogs.com/anee/p/2814855.html
Copyright © 2011-2022 走看看