标签:
时间:2016年4月19日09:54:27
public static final int REQUEST_CODE_1 = 0x01;
public static final int REQUEST_CODE_2 = 0x02;
Intent intent_A = new Intent(XXActivity.this, XXActivity.class);
startActivityForResult(intent_A, REQUEST_CODE_1);
Intent intent_B = new Intent(XXActivity.this, XXActivity.class);
startActivityForResult(intent_B, REQUEST_CODE_2);
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
if (requestCode == REQUEST_CODE_1) {
if (resultCode == RESULT_OK) {
//代码逻辑...
}
}
if (requestCode == REQUEST_CODE_2) {
if (resultCode == RESULT_OK) {
//代码逻辑...
}
}
super.onActivityResult(requestCode, resultCode, data);
}
Android startActivityForResult
标签:
原文地址:http://www.cnblogs.com/yuzhongzheng/p/5412583.html