在 onActivityResult 中,我的一个片段有以下代码:
onActivityResult(int requestCode, int resultCode, Intent data){
//other code
ProgressFragment progFragment = new ProgressFragment();
progFragment.show(getActivity().getSupportFragmentManager(), PROG_DIALOG_TAG);
// other code
}
然而,我得到了以下错误:
Caused by: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
有人知道这是怎么回事吗? 或者我该如何解决这个问题? 我应该注意到我正在使用 Android 支持包。