Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use ActivityGroup class?

 
Prajkti Khadse
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Can anybody please tell me, how to use

class

I referred the documentation, but did not get any clue??!!
 
Bharath Jagdish
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 136
Android Chrome Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Cdd Vdd
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic