MAINTAIN ACTIVITY WHEN MINIMIZING [closed]

0

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.

    
asked by anonymous 02.02.2018 / 05:28

1 answer

0

When you are working with multiple activities, one way to solve this problem is to have an "empty" activity as the initial. It would only contain a logic to check whether the user is logged in or not, and then redirects to the correct activity.

    
02.02.2018 / 16:28