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)
- S - Splash Screen
- L - Loading Screen
- Lo - Login Screen
- M - Main Menu (Has list of tasks)
- T - Task Screen
"User starts the app and proceeds as in the following order : S -> L -> Lo (logs in) -> M (selects one of the Tasks) -> Task Screen
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 Task Screen??? and if pressed Back button again, it goes to the Main screen again, and so forth...???
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.
Note : 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...!
Thanks in advance for your time and help!