Bob
Bob

Reputation: 23000

How to show activities inside of a running activity?

I want to show my activities inside of a running activity. I need something like frame in html language that is used for showing other pages inside a page. I know Tabhost has this ability. Which one of other controls has this ability?

Thanks,

Upvotes: 0

Views: 207

Answers (2)

Necronet
Necronet

Reputation: 6813

The Fragment API is really your best choice, it's quite easy to use and you can dynamicly add them to your Activity Layout (take a look to Framgent For All - google Article) by code using the FragmentManager, this feature it's since 3.0 altough Google also released a pretty nice Compatibility Package that you can download out of the SDK Manager and added to your project like this Fragment For All:

enter image description here

Upvotes: 0

Saybel Alexey
Saybel Alexey

Reputation: 81

Google introduced fragments in Android 3.0 and upper to create a portion of user interface in an Activity. But it is not two Activity, becuase activity <> window. For lower version you can manually load xml layout in your activity.

Upvotes: 2

Related Questions