Android use a different icon for recent apps
I have a working app but I want to add an alternate version of the app's icon that would be associated with the recent apps window. Instead of the icon that appears on the homescreen, the recent apps window would use the other one. The way this can be done is using the new setTaskDescription(...) method in the Activity class. It can be used to set the title of the task and the icon of the task to display in the recent apps screen. This uses the ActivityManager.TaskDescription class to set these values. See an example below. Note that all this code belongs in the activity whose task description