如果我打电话startActivityForResult
并且开始的活动也在调用startActivityForResult
另一个活动,
那么第一个活动是否可能会停止?
有没有办法防止它发生?
我应该传递我创建的每个意图什么上下文?
一些代码来计算过程
intent = new Intent(MainActivity.this, SettingsActivity.class);
startActivityForResult(intent, AbstractSettingsActivity.SETTINGS_ACTIVITY_REQUEST_CODE);
// this is inside the Settings activity
Intent intent = new Intent(getBaseContext(), SettingsTabsActivity.class);
startActivityForResult(intent, CUSTOMIZE_TAB_REQUEST_CODE);
// at this point i got ondstroy on main activity - main is not the root