MAINTAIN ACTIVITY BY MINIMIZING

Asked

Viewed 89 times

0

How do I keep my app current when I minimize and maximize the window? I noticed that every app I do, if I minimize and maximize it goes back to initial acitivity, especially in apps that need to login this can not occur, ever thought? Every time maximize having q log in again.

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 redirect to the correct Activity.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.