Different activities within a tab and redirection between the tabs
-
29-04-2021 - |
Question
In my application, I have multiple activities within a single tab. I am managing those by using Activity group. I wanted to ask, that if on one tab I am on the second or third activity, and then I move to the other tab and back to the same tab, how can I show the first activity. Now, it is showing the activity which I was on before moving to the next tab.
Please help me out in this.
Solution
Try This
Intent i = new Intent(getParent(),your.class);
TabGroupActivity parentActivity = (TabGroupActivity)getParent();
parentActivity.startChildActivity("class_title", i);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow