title: Android - login and relogin
body: <p>in my activity I have login page (L), which leads to hierarchy of activites (L -> A -> B -> C). When user log in, and he goes up to activity C, he minimizes his app and after some while, system will do a force close on this app.</p>
  
  <p>Now, when he start this app again a he log-in, he should have see, where he ware last time an application was running with all opened activities on stack (if he was in C, one back button leads to B, then to A, then to L). How to achive such a behavior in Android? I am now using sharedpreference, which is hodling string of visited activities, then some flag, which tells me whether an app was finished with System close or user close and them I am persisting each activity with its own sharedpreference. If system kills my app, after login I open series of past opened activities in For cycle, but they are on the stack only. They are opened (= onCreate method is run) only when I use back button to see them.</p>
  
  <p>Do you see any cleaner approach?</p>
  
  <p>Thanks</p>