how to change android activity in tab dynamically
<p>I have two similar question,</p>

<p>1.
I have a TabActivity, and when I select one specific tab I want to display one of two candidates activities. And it depends on run-time. i.e. I want to display two different activity in one tab dynamically due to different mode.</p>

<p>For more detail description,
It's like a social platform, user may belong to a group or not.
If he belongs to a group, when he select "GroupTab", he can see a activity page for group info.</p>

<p>If he does not belong to any group, when he select "GroupTab", he can see a list of all available groups.</p>

<p>He can join or quit a group dynamically, so the GroupTab's content is depend on run-time.</p>

<p>2.
When I press a button in a activity (which is in a Tab), I want to change to next activity, and that activity could go backward to original activity too. (All activities should be under the Tab)</p>

<p>--</p>

<p>I've seen some method using ActivityGroup, and since it is deprecated, I'm looking for some other alternative way to implement that.
Any solution?</p>
