In this case, there is a main interface MainActivity, which contains two buttons: mButton1, mButton2. press next to jump to Activity1 and Activity2. there is a button in Activity1 mButton3, jump to Activity3, respectively, the redirection method with return values is used. Set the buttons in Activity3. if certain conditions are met, the system will jump to Activity1 and send the information to Activity1. the jump from Activity1 to Activity3 is good! In Activity3, jump to the code snippet of Activity1:
[Java]
<Span style = "font-size: 18px;"> clickOk = true;
Intent backIntent = new Intent (Activity3.this, Activity1.class );
Bundle bundle = new Bundle ();
Bundle. putString ("send", f0.getAbsolutePath ());
BackIntent. putExtras (bundle );
Activity3.this. setResult (0, backIntent );
Activity3.this. finish ();
</Span>
Later, I developed Activity2, which was careless at the time and bound Activity3. (NOTE: When Activity3 is returned, Activity1 .) however, when Activity2 is associated with Activity3 and Activity3 meets the trigger condition, Activity2 is returned normally. That's strange!
In Activity3, Intent settings are returned, which are redirected to Activity1. Now I am wondering, how can Activity3 jump to Activity2 after Activity2 and Activity3 establish an intent jump relationship ???