“Can not perform this action after onSaveInstanceState” - why am I getting this exception from my activity's onResume method?

后端 未结 7 681
北海茫月
北海茫月 2020-12-08 02:25

My activity invokes the camera with the ACTION_IMAGE_CAPTURE intent. If the camera activity returns succesfully, I set a flag in the onActivityResult callback, and based on

7条回答
  •  一个人的身影
    2020-12-08 03:20

    I think I know the answer - I'm using the FragmentActivity from v4 compatibility library, and so I need to perform my fragment transactions in onResumeFragments instead of in onResume. Can someone confirm?

提交回复
热议问题