ActivityA的代码:
Intent intent = new Intent(ActivityA.this, ActivityB.class);
Bundle bundle = new Bundle();
bundle.putString("abc", "aaaaaaaaaaa");
intent.putExtra("bundle", bundle);
startActivityForResult(intent,RRSURT_OK);
ActivityB的代码:
Intent intent = getIntent();
ActivityB.this.setResult(RESULT_OK, intent);
ActivityB.this.finish();
然后在Activity A中重写onActivityResult方法