我将一个活动对象传递给某个类:
// SomeClass.java constructor
public SomeClass(Activity activity) {
this.mActivity = activity;
}
我需要使用活动对象的 startActivityForResult :
private void goToAnotherActivity() {
Intent intent = new Intent(this.mActivity, AnotherActivity.class);
this.mActivity.startActivityForResult(intent, INTENT_KEY);
}
是否可以从 SomeClass.java 覆盖 this.mActivity 的 onActivityResult?