Я дам вам фиктивный способ
Создать класс theApp
public class theApp extends Application {
private String Note;
public String getNote(){
return Note;
}
public void setNote(String Note){
this.Note = Note;
}
}
В манифесте (измените android: name = "theApp" )
<application android:icon="@drawable/icon" android:label="@string/app_name" android:name="theApp">
В первом задании (для возврата ко второму заданию):
Intent myIntent = new Intent(FIRSTACTIVITY.this,CALLED_ACTIVITY.class);
Bundle bundle = new Bundle();
bundle.putString("key1", whatever);//if you want to send some string
bundle.putString("key2", whatever);//you can also send integers and others using putInt and others
myIntent.putExtras(bundle);
startActivityForResult(myIntent, 0);
Во втором задании (для возврата к первому заданию):
((theApp)getApplicationContext()).setNote(a_STRING);
setResult(ANY_INTEGER);
finish();
Наконец в первом занятии
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// use ((theApp)getApplicationContext()).getNote();
// if you want you can use ANY_INTEGER (which was set in the second activity using setResult
// Access ANY_INTEGER using resultCode
}