performing pause of activity that is not resumed after recreate method

后端 未结 3 1543
刺人心
刺人心 2021-02-20 09:26

I have a project for HoneyComb and I get an error after use recreate() method at onResum() method in my main Activity.

11-10 22:05:42.090: E/ActivityThread(1917)         


        
3条回答
  •  隐瞒了意图╮
    2021-02-20 10:30

    I don't know if this is the cause for your problems but you don't compare Strings like this in Java;

    protected void onResume() {
        ...
        if (recreate == "S") {
            recreate = "N";
            recreate();
        }
    

    Use if ("S".equals(recreate)) instead.

提交回复
热议问题