How do I make my app keep current activity when I minimize and maximize the window? I noticed that every app I do, if I minimize and maximize it back to initial acitivity, especially in apps that require login this can not occur, have you thought? Whenever you maximize having to log in again.