From the manifest you have posted it does appear that LoginActivity
is started when the app is started. You should take a look at your code to see if LoginActivity
is starting MainActivity
, or if you are sharing layouts, or similar.
It's simple enough to put some debug information in your LoginActivity
and see if it is started when your app is started. Remember that if you start an app and then come out of it (for example hitting the home button) then restarting it will often bring you back to where you were last rather than restarting it from the beginning.