问题
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