Note that there are some explanatory texts on larger screens.

plurals
  1. POandroid:clearTaskOnLaunch doesn't work How to clear the backstack when comes to foreground?
    text
    copied!<p>I need this behavior in my app, "user must have to login in each time he tries to launch it(touching the app icon directly, or by task manager or via recent apps)" So the activities are in this order (think the App name is Foo app)</p> <ol> <li><strong>S</strong> - Splash Screen</li> <li><strong>L</strong> - Loading Screen</li> <li><strong>Lo</strong> - Login Screen</li> <li><strong>M</strong> - Main Menu (Has list of tasks)</li> <li><strong>T</strong> - Task Screen</li> </ol> <p>"User starts the app and proceeds as in the following order : <strong>S</strong> -> <strong>L</strong> -> <strong>Lo</strong> (logs in) -> <strong>M</strong> (selects one of the Tasks) -> <strong>Task Screen</strong> </p> <ul> <li><p>so while he is in the Task Screen, he presses the Home button and the App goes to the background and he uses another app. and lunches the Foo app again. So in this if he pressed the Back button, it shows the previously being used <strong>Task Screen</strong>??? and if pressed Back button again, it goes to the <strong>Main screen</strong> again, and so forth...???</p></li> <li><p>This should not happen, simply what I want is, when the App comes to foreground, user needs to login and never be able to go to back to any of the screens.</p></li> </ul> <p><strong>Note :</strong> all the screens have extended a BaseActivity class which has extended the Activity class. and in there I have used onResume(),onPause() method and another custom method to find out when the extended child class goes to pause,and resume when the app comes from the background!!! And in some Screen I have had to use Fragments too...!</p> <p>Thanks in advance for your time and help!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload