permaculture playing cards
The moose likes Android and the fly likes How to use ActivityGroup class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to use ActivityGroup class?" Watch "How to use ActivityGroup class?" New topic

How to use ActivityGroup class?

Prajkti Khadse
Ranch Hand

Joined: Apr 02, 2009
Posts: 52
Hi all,

Can anybody please tell me, how to use


I referred the documentation, but did not get any clue??!!
Bharath Jagdish

Joined: Mar 13, 2009
Posts: 5
1. extend it to your activitygroup class.

Class A extends ActivityGroup{}

2. Get the LocalActivityManager.

3. set the content view as shown below


where activity -> reference of the activity which you would like to display.

Class B extends Activity{
//in onCreate()
Activity activity = this;

Pratik Goswami
Ranch Hand

Joined: Mar 02, 2009
Posts: 136

Hi Bharath Jagdish,

Can you explain in more detail? Because I want to use different activities under same tab. It would be really helpful to me. I didn't find any detailed doc regarding use of ActivityGroup and LocalActivityManager.


iOS * Android Developer
Cdd Vdd

Joined: Mar 01, 2010
Posts: 1
I'll follow this thread because i also really want to know how to display 2 activities in the same Tab. ( if it's possible)


I agree. Here's the link:
subject: How to use ActivityGroup class?
It's not a secret anymore!