2010-06-15 116 views
4

是否有可能在运行时更改android应用程序图标?我已阅读Changing the application icon text dynamically in AndroidHow can i change an application icon programmatically in Android?。所有回答都不能。我使用Android 1.6。有什么办法吗?Android应用程序图标更改

+1

的Chainfire队(SuperSU的制造商)最近有一个[博客文章(http://www.chainfire.eu/articles/133/_TUT_Supporting_multiple_icons_in_your_app/)即进入细节如何,他们使用[activity-alias](http://developer.android.com/guide/topics/manifest/activity-alias-element.html)和[PackageManager.setComponentEnabledSetting()](http:// developer。)更改应用程序的图标。 android.com/reference/android/content/pm/PackageManager.html#setComponentEnabledSetting%28android.content.ComponentName,%20int,%20int%29) – ianhanniballake 2013-02-24 02:28:47

+0

@ianhanniballake您是否已经成功实施了Chainfire的解决方案?如果是这样的话,你做了什么(如果有的话)关于在操作系统级别使用的图标(如多任务,卸载弹出窗口或应用程序管理器列表)的图标仍然是原始的或者成为默认的通用Android图标,如果你没有在清单中的应用程序级别设置一个图标?我发现Chainfire解决方案仅适用于应用程序抽屉或主屏幕快捷方式中的启动器,然后与操作系统级版本不匹配。 – jokeefe 2014-10-03 01:32:27

回答

相关问题