I have the following code in my onActivityResult for a fragment of mine:
onActivityResult(int requestCode, int resultCode, Intent data){
//other code
ProgressFragment progFragment = new ProgressFragment();
progFragment.show(getActivity().getSupportFragmentManager(), PROG_DIALOG_TAG);
// other code
}
However, I'm getting the following error:
Caused by: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
Anybody know what's going on, or how I can fix this? I should note I'm using the Android Support Package.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…