标签:
A.class(开始的activity)
①startActivityForResult(intent, AppConst.MINE_ACCOUNT);//传参
B.class、C.class(中间的activity)
①startActivityForResult(intent, AppConst.MINE_ACCOUNT);//传参
②
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if(requestCode == AppConst.MINE_ACCOUNT){
if (resultCode == RESULT_OK) {
setResult(RESULT_OK);
finish();
}
}}
D.class(最后一个activity)
setResult(RESULT_OK);
finish();
标签:
原文地址:http://www.cnblogs.com/jovita21/p/4517005.html