I have an application that has two activities. One is a LoginActivity which is tagged as the "MainLauncher" and the other is the MainActivity of the app. I need to go through the LoginActivity prior to going to the MainActivity to gather some user information.
When the app crashes and gets restarted it goes directly back to my MainActivity thus putting me in a bad state where I don't have the user information that I need. This seems to happen in other cases too (on some phones) but haven't nailed them all down.
I have my MainActivity tagged as SingleTask so that if I get activated via a notification or from the home screen it will not create a new MainActivity if the app is already running.
How do I make sure that when the application starts up, it always goes to my "MainLauncher" LoginActivity?