tags:

views:

75

answers:

1

Hello Guys,

I want to know if we can display multiple activities in a single activity using ActivityGroup. Can anyone please help me out with this ?

Thanks in advance.

Regards, Serenity.

A: 
  1. extend it to your activitygroup class.

Class A extends ActivityGroup{}

  1. Get the LocalActivityManager

  2. 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;
} 

As seen in coderanch.com

Cristian