OK so I have done some research and it looks like there are a fair amount of questions regarding this (such as here) but none of the answers seem to address my particular question.
Simply put, say we have back stack with three activities: A -> B -> C. Now if the user performs a certain action in activity C (the foreground activity) I want to be able to remove activity B from the back stack and replace it with some other activity D giving A -> D -> C. Is there any way to do this without disrupting activity C?
Thanks in advance.