2010-06-15 109 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

回答

相關問題