I\'m trying to use TaskStackBuilder with notifications to create a back stack for the back button to go through. Normal flow of my app:
I found another way to tackle this problem: use the method TaskStackBuilder.editIntentAt(int)
ex.
Intent intentC = new Intent(context, ActivityC.class);
intentC.putExtra(key, valueC);
TaskStackBuilder sBuilder = TaskStackBuilder.create(this)
.addParentStack(ActivityB.class)
.addParentStack(ActivityC.class)
.addNextIntent(intentC);
Intent intentA = sBuilder.editIntentAt(0);
intentA.putExtra(key, value);
Intent intentB = sBuilder.editIntentAt(1);
intentB.putExtra(key, value);