TaskStackBuilder transition animation

After digging inside TaskStackBuilder‘s implementation, the problem is that it forces adding Intent.FLAG_ACTIVITY_CLEAR_TASK to the 1st intent in the stack, which makes that strange effect, so use the following to start the stack: Intent[] intents = TaskStackBuilder.create(this) .addNextIntentWithParentStack(myIntent) .getIntents(); if (intents.length > 0) { intents[0].setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);// Or any other flags you want, but not the `.._CLEAR_..` … Read more

tech