【问题标题】:Icon pack is not showing up in launchers图标包未显示在启动器中
【发布时间】:2013-06-03 13:42:18
【问题描述】:

我的图标包没有出现在启动器中。我把它变成了一个图标包模板(所以它有更多信息,比如关于开发部分等),但不再出现在启动器中。有什么建议么?这是我的清单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.slpcatalyst.flushlens"
android:versionCode="1" 
android:versionName="1" > <!-- android:versionCode="1" +1 with every update! android:versionName="1" Whatever you      like-->

<!-- Wallpaper --> 


<!-- Screen -->
<supports-screens android:anyDensity="true" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true"  android:xlargeScreens="true" android:resizeable="true" /> 


<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> 

<uses-permission android:name="android.permission.SET_WALLPAPER">
</uses-permission>
<!-- Main Activity -->
<application
android:icon="@drawable/icon"
android:label="@string/theme_title" 
android:allowBackup="true" 
android:theme="@android:style/Theme.NoTitleBar"     
>

<activity
android:name="com.slpcatalyst.flushlens.MainActivity"
android:label="@string/theme_title"  >

<intent-filter>
<action android:name="android.intent.action.MAIN" /> 
<category android:name="android.intent.category.LAUNCHER" /> 
</intent-filter>
</activity>   

<!-- Other Activites -->          
<activity
android:name=".AboutDev"
/> 

<!-- ADW / Nova / Holo -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="org.adw.launcher.THEMES" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

<intent-filter>
<action android:name="org.adw.launcher.icons.ACTION_PICK_ICON" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

<!-- Go / Nova -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="com.gau.go.launcherex.theme" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.INFO" />
</intent-filter>

<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>

<!-- LauncherPro / Holo -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="com.fede.launcher.THEME_ICONPACK" />
</intent-filter>

<!-- Apex -->
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="com.anddoes.launcher.THEME" />
</intent-filter>

</application>

</manifest>    

【问题讨论】:

    标签: android templates icons launcher


    【解决方案1】:

    您的清单的意图过滤器不是任何活动标签的一部分。尽管启动器通常会忽略活动本身,但它仍然是必需的,因为这是系统查询主题的方式。

    在活动标签下包含意图过滤器。

    <activity android:name=".AboutDev" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <action android:name="com.gau.go.launcherex.theme" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
    </activity>
    

    【讨论】:

      猜你喜欢
      • 2016-08-09
      • 1970-01-01
      • 2019-01-17
      • 2018-06-04
      • 2022-01-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-08
      相关资源
      最近更新 更多