title: Restrict access to android activity after login
body: <p>I am building an android app and have a login system for it. Basically, what I want to do is restrict the user from going back to the login page after being logged in. Sort of a re-direct. Right now I save in the SharedPreferences that they are logged in and can check that. I have it sort of working but whenever they press the "back" button, it loads the activity anyways. Do I need to reload the activity or something so that it doesn't allow access to it? Thanks in advance.</p>