环顾四周,我似乎找不到任何方法Activity
来确定resultCode
它是从什么开始的。例子:
class A extends Activity {
void yadda() {
Intent intent = new Intent(this, B.class);
startActivityForResult(intent, 8675309);
}
}
class B extends Activity {
void yadda() {
int code = getTheResultCode(); // I want to get 8675309
}
}
我必须把它放进去Intent
吗?
intent.putExtra("resultCode", 8675309);