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

前端 未结 30 2052
迷失自我
迷失自我 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:41

    Same issue from me and after a day long analysis of all articles, blog and stackoverflow i've found a simple solution. Don't use savedInstanceState at all, this is the condition with one line of code. On the fragment code:

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(null);
        .....
    

提交回复
热议问题