I have followed this tutorial for my application.
I have: Tab 1: Tabgroupactivity1>(startchildactivity)MainActivty>(startchildactivity)ListActivity>(startchildactivity)DetailActivity
similarly I have other two tabs.
The thing is that when i Return from any of the following activity to previous one it(previous one) gets restarted.
I too have tried to startchild activity with SINGLE_TOP and SINGLE_TASK but in this only once I can go through the flow
second time it does not call following(next/child) activity
So How can i maintain current activty state while it calls for child activity and return ??
I am Using following intent onclick of listactivty:
Intent myintent = new Intent(getParent(),Second.class);
myintent.putExtra("id",favadapter.getItem(position).id.toString());
TabGroupActivity parentFav = (TabGroupActivity)getParent();
parentFav.startChildActivity("FavActivity", myintent);