java.lang.Throwable: setStateLocked

前端 未结 2 753
没有蜡笔的小新
没有蜡笔的小新 2021-01-25 04:15

Everytime from other Activity intents to LoginActivity, it will crashes the app.

Logcat of the error:

AccessibilityManager: setStateLocke

相关标签:
2条回答
  • 2021-01-25 05:08

    It might be the way you try call intent for Login Activity from your mainActivity or where ever you try create the intent I usually use

    Intent i = new Intent(this, Page2.class); // Change to LoginActivity.class
    i.putExtra("isNewUser","true"); // Optional 
    startActivity(i);
    

    You might be doing this already, I'm not sure as your code to call this class isn't included.

    Also you should add a default case to your switch statement it could prevent tricky bugs further down the road.

    0 讨论(0)
  • 2021-01-25 05:14

    Apparently , I have found my solution. I misses a super.onStop() in an Activity, that was careless of me. Apologize and thanks for all of your times!

    0 讨论(0)
提交回复
热议问题