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.

Était-ce utile?

La solution

Try This

Intent i = new Intent(getParent(),your.class);
        TabGroupActivity parentActivity = (TabGroupActivity)getParent();
        parentActivity.startChildActivity("class_title", i);
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top