I have a login screen in my Android App and after login the main screen comes.
What is the most appropriate way to not allow the login screen to appear again after successful login.
Should we put a check in the onCreate of the login Activity.
Set up appropriate Flag to the Intent of main screen
- if this is not appropriate what would be the most appropriate flag for this.
Another problem is that from the main screen we have links to various sections of the App. The user may leave the app at any page of any subsection of the app. For eg: the user may view various products by using the product section from the Main Screen.
Is it possible to always start off from this main screen even when there is some error in some subsection activity. For eg: if any product page crashes , the app returns to Starting Page of Products whereas we require it to start from the Main Screen.
Is it possible through some flag setting in the activity tag or do we need to check some property in
onCreateand accordingly navigate back to Main-Screen.
Kindly update.
Thanks