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

后端 未结 7 682
北海茫月
北海茫月 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:18

    Add this to your Activity:

     @Override
        protected void onSaveInstanceState(Bundle outState) {
            //No call for super(). Bug on API Level > 11.
        }
    

提交回复
热议问题