Suppose I have an app where the main activity flow is A -> B. However the user may launch the app directly into B, in which case it's the only activity in the stack. I'd like the user to launch into B and still be able to reach A either through back or through the "pop stack" in the upper left corner.
The best solution for the back key is about rewriting onBackPressed(), and I understand that the "pop stack" button is supposed to slightly differ in meaning. However I'm genuinely curious about what it takes to really have to get a A -> B stack without having displayed A in the first place - that is, no "quickly flash A in the screen and launch B as fast as possible" allowed.