To keep it simple I have 3 screens. A, B and C.
You can access Screen B or C from screen A.
You can access Screen C from screen B
You can access Screen B from screen C
Data from screen A is passed to B and C
What I am looking to do is create a button on screen B and C and where ever they are takes it back to screen A. I do not want to start a new activity of A as it requires the data it created
Also is there a way to overrule what the back button on the phone does. ie if on screen C it goes back to A even is the user clicked B and then C?
Thanks for your time
A suggestion is to work with results and startActivityForResult().
If you are at C from B and you click on button to go to A you can set the result intent;
Then catch that result in B by overriding onActivityResult(), and checking the intent extra, then finish B.