I have the following script:
In the Android manifest, I have three actions: ActivityA ActivityB - the parent element of ActivityA ActivityC
What I want to do is run ActivityA from ActivityC using .StartActivity () intent. Activity starts successfully. Now I want to return to the ActivityC using the back button (in the upper left corner), but since ActivityA has ActivityB as the parent (as indicated in the android manifest), the back button in the action bar returns me to ActivityB instead of the previous ActivityC. If I use the back keyboard button, I am redirected to ActivityC.
What can I do to get the same result in both cases "go back". The result I'm looking for is to redirect to the activity that started ActivityA, not the parent activity. Is it possible?
source share