android - 启动器如何访问图标包?

标签 android android-launcher android-icons

Google Play 商店上有很多图标包可用,它们与启动器兼容,我只是想知道启动器如何访问和识别此类图标包以反射(reflect)到启动器。

我成功地在链接到启动器的 Icon pack 中编写了代码,但是 low launcher 访问这样的图标包,所以它会处理适当的图标包并反射(reflect)到启动器?

图标包中的代码,定义必要的启动程序包名称@

            <!-- 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.DEFAULT" />
            </intent-filter>

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

我关注了XDA developers Guide但没有得到任何解决方案,任何人都可以阐明吗?

最佳答案

此应用程序具有针对不同启动器的所有 Intent 过滤器,并且会根据该 Intent 执行操作。这些由发射器定义<action android:name="com.gau.go.launcherex.theme" /> <category android:name="com.fede.launcher.THEME_ICONPACK" />并且您的应用程序会根据这些采取行动,并在特定启动器触发 Intent 时提供图标。

关于android - 启动器如何访问图标包?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18711502/

相关文章:

android - 尝试运行 PhoneGap APP 时 AndroidManifest 出现问题

Android:启动共享 Intent 会关闭我的 Activity

android - 设置字母间距的字符样式/跨度

java - 自定义启动器应用程序图标问题?

android - 无法从既没有启动选项 "Default"也没有 "Specific" Activity 的 Android Studio 启动应用程序

android - 大通知图标旁边的灰色圆圈?

android - Android 4.2 中的操作栏图标大小

android - 为什么 Material 设计中 Activity 图标和非 Activity 图标的透明度不同?

android - 在 Android 下载管理器上获取总字节返回 -1

android - 配置构建以便启动应用程序,而不是 Activity