Here is the problem. In my application, I have 5 tabs that contain actions. In each of them I have to show different screens. For example, the main action of a tab is a list, and when I click on one of its elements, I want to display a second screen with a different list, which will display a different screen when the user selects an item, etc.
So, I knew that tabbed actions weren’t easy to manage, but I really think I need this solution. Indeed, each screen should contain a "Back" button, which will return to the previous screen with the previous state (the same position in the list).
To start new actions inside the tabs, I used the technique described here http://gamma-point.com/content/android-how-have-multiple-activities-under-single-tab-tabactivity
It works mostly well, but I ran into the problem of going back to the previous steps. My solution for now is to start a previous activity, as described on this website, but without any flag.
So here are my two real problems:
When I try to return to the first and main action of the tab, it seems like a new instance is being created, even if I use the Intent.FLAG_ACTIVITY_CLEAR_TOP flag. So when I do a few rounds between this activity and the next, I get a StackErrorOverFlow.
Since actions are accessible from different types of activities, I must always remember the actions of my parents, giving them intentions. It is really hard when I have a sequence of 5 or 6 screens, I have to remember the great parent if this action ... I am very grateful if I could just call the last action started by the local agent.
Thank you for your help, and if I do not understand, please let me know!
Chayy source share