java.lang.Throwable: setStateLocked

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

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

Logcat of the error:

AccessibilityManager: setStateLocke

2条回答
  •  猫巷女王i
    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.

提交回复
热议问题