tags:

views:

51

answers:

3

friend's, i have an task to set horizontal swipe tabs below the header,how can i set an activity on another activity.

+1  A: 

You need a layout which is the zone where you want to put your activity. Take a look at this link

TheLayout.removeAllViews();
View view = getLocalActivityManager().startActivity(id, intent).getDecorView();
TheLayout.addView(view, new LinearLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));
fedj
A: 

checkout TabActivity and TabHost in android developer site http://developer.android.com/resources/tutorials/views/hello-tabwidget.html this might help you

Abiral Shakya