0

I have 2 activities and they must be run separately. Now, I'm starting second activity using FLAG_ACTIVITY_MULTIPLE_TASK and FLAG_ACTIVITY_NEW_TASK.

screenshot of the result.

QUESTION: How can I change icons of the activities? As I remember, it's possible, as Google Chrome used them before. How this feature called?


UPDATE: Icons are dynamic, so I need to change them programmatically

Community
  • 1
  • 1
GRiMe2D
  • 654
  • 1
  • 10
  • 22

3 Answers3

0

This is handled by ActivityManager.TaskDescription

https://stackoverflow.com/a/28100891/3815843


PS: On Android running applications are called "Recent Apps". I always googled Task manager, Intent manager. That's why I didn't found any info

Community
  • 1
  • 1
GRiMe2D
  • 654
  • 1
  • 10
  • 22
-1

I think you question is duplicated. See other same question.

This, for example!

Community
  • 1
  • 1
GensaGames
  • 5,538
  • 4
  • 24
  • 53
-2

Just set android:icon for each activity separately in manifest. Works for me.

Shaishav
  • 5,282
  • 2
  • 22
  • 41