Intent i = new Intent(MainActivity.this, Aty1.class);
Bundle data = new Bundle();
data.putString("txt", "Hello Aty1");
i.putExtras(data);
startActivityForResult(i, 0);
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) { String result = data.getStringExtra("result"); tvOut.setText(result); super.onActivityResult(requestCode, resultCode, data); }
Intent i = new Intent();
i.putExtra("result", "Hello MainActiviy");
setResult(0, i);
finish();
//// // //地址// //目录// //// Intent i = new Intent();// i.setComponent(new ComponentName("cn.eoe.intents", "cn.eoe.intents.Aty1"));//包的全名,类的全名Intent i = new Intent