Hi Folks,
Basically, we are maintaining the sessions for the specific user's environment. For that, Three basic stuff we have to maintain. That are Login, Session check and Logout.
In Android, Each screen designed by Activity. we can startActivity()
and finish()
a current Activity. But you can not do that Previous Activity.
UI Design of APP:
Login(Main Activity)-->Home(Child Activity)-->It contains Profile, add data, settings,etc.(Sub Child Activity). All Screen has a Logout option in Menu.
The Problem is:
When i select a Logout. The App gets Logout. But I can not navigate the App to the Login Screen. The Previous child Activity did not finished from the Activity Stack.
Any Idea to Achieve this? Its Most Thankful.