getting exception “IllegalStateException: Can not perform this action after onSaveInstanceState”

前端 未结 30 2099
迷失自我
迷失自我 2020-11-22 05:12

I have a Live Android application, and from market i have received following stack trace and i have no idea why its happening as its not happening in application code but it

30条回答
  •  醉酒成梦
    2020-11-22 05:45

    I was getting this exception when I was pressing back button to cancel intent chooser on my map fragment activity. I resolved this by replacing the code of onResume()(where I was initializing the fragment and committing transaction) to onStart() and the app is working fine now. Hope it helps.

提交回复
热议问题