Does anyone know how the Recent Tasks list in Android populates the name it displays next to each app? I would like to change this from the name of the launcher activity to something else.
Asked
Active
Viewed 1,712 times
2
-
Do you mean you want to change the name of your app altogether or ONLY what it displays in Recent Tasks? – OrhanC1 Dec 07 '13 at 01:12
-
1Just what is next ot it on the Recent Apps list. – Josh Dec 07 '13 at 01:17
2 Answers
3
Reading though the RecentsPanelView source code (ref 1), it seems like it just takes the package's label. That seems to be the only thing you can change.

OrhanC1
- 1,415
- 2
- 14
- 28
-
That's a bummer. Maybe I should ask this as another question, but Can I change the text in the ActionBar to be something other than the Activities label? – Josh Dec 07 '13 at 01:33
3
This works for me.
if (Build.VERSION.SDK_INT>=21){
setTaskDescription(new ActivityManager.TaskDescription(name));
}

Playhi
- 137
- 1
- 4