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/