Everytime from other Activity intents to LoginActivity, it will crashes the app.
Logcat of the error:
AccessibilityManager: setStateLocke
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.
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!