How Can Change an Application icon programmatically in android without creating shortcut?

。_饼干妹妹 提交于 2019-12-22 00:30:00

问题


I want to change an application icon directly from the program and don't want to create shortcut and update it. Some calender app changes icon everyday without creating shortcut. I read that can create activity-alias element for each of my icons in manifest. It's work for me but if I want to have 30 icons like a calender then I should have 30 activity-alias element in manifest and I do't think it's a correct way. I also read that this way works differently across devices. Can anyone help me?


回答1:


You can do this in smart launcher.

there is an option in smart launcher to change icon of an app without creation a shortcut. if you are okay with the smart launcher then this is the way. I don't know any other way to do that.



来源:https://stackoverflow.com/questions/38524577/how-can-change-an-application-icon-programmatically-in-android-without-creating

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!