I am working with ActivityGroup and I want to open an sub activity of the ActivityGroup on selection of another tab. Please anyone let me know if it is possible or not?
example – I have tab1 and I open a subActivity(say activity “A”) in the same tab using ActivityGroup and now when I click on tab2 I should open the same Activity “A” with all its contents.
Thanks in Advance.
I really, strongly urge you to stop using ActivityGroup. This has been deprecated.
The fragment support library provides a much better way to do these things. The 3.2 version includes an example showing how to use it with the tab widget. See the “Fragment Tabs” example and the TabActivity documentation.
These can be used down to Android 1.6.
(There are also lots of demos there for other things you can do with fragments.)