GeeCON Prague 2014*
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
Author

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

class

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

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

this.setContentView(activity.getWindow().getDecorView());

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.

Thanks
Pratik


iOS * Android Developer
Cdd Vdd
Greenhorn

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)

Thanks


Profete
 
GeeCON Prague 2014
 
subject: How to use ActivityGroup class?