I have 3 actions in my application. A - is an action run when I click "Activity B", then I have a button to launch the Activity A, or I can click the "Back" button, and I can go to the previous values, press A. On the rear panel, held in with the button pressed and press the new values ββto be set to A.
When I click in the B, A start, I use a flag REORDER TO FRONT and singleletop as the start mode. The new activity is created. When I press the "Back" button on "A", it will go into "B" mode and press the "OK" button again. I want to Activity A has been pressed on the B. I can not do anything in onBackpressed() in B, because B is used in several scenarios, in addition to the above scenario. How to manage it.
source share