I have read this post but it won’t fix my problem. Skip going back to direct parent activity when pressed back
Supposing I have a list of intents from A to Z, where A is the root. In any of these intents I would like to provide a “back to A” function, and the normal “back to previous” should stay. so how could I implement the “back to A” function?
Because A does lots of internet actions and is kinda slow, I don’t want to new an A again, the best way would be to go in the stack and skip the intents in between and show A directly.
use below code from where you want to call the A which is in Stack.
This reference will give you more info about your requirement.