java.lang.Throwable: setStateLocked

与世无争的帅哥 提交于 2019-12-02 10:34:43

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!

Sean.F

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!