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.
This works for me.
if (Build.VERSION.SDK_INT>=21){
setTaskDescription(new ActivityManager.TaskDescription(name));
}