I have an android application with a main activity, which is passed information from the login Activity. Whenever I access another activity from the MainActivity, and I use the back button on the bottom of the android device, the MainActicity is restarted at its previous state. However if I use the back button in the toolbar or Actionbar, the MainActivity is reset and this clears out the information that was previously passed from the loginActivity? How can I have the back button at the top behave more like the one on the bottom?
Would I have to find a way of passing the information from the database without actually assessing the login screen? How would I go about this. This information can only be passed if the user enters the correct login iformation.