Create a heirarchy similar to this:
1. A class which creates a tab - set the content to class extending
ActivityGroup.
2. Class which extends ActivityGroup - here you display the default activity
ie., your default frontend like the example code i gave you.
3. Class which extends Activity - Default
thx at first and some additional information...
If the tab is created then a intent is fired up to launch my-frontend-
activity and this activity starts the activity whose content should be
displayed in the tab. If the launched-by-my-frontend-activity closed
then the my-frontend-activity decide w
You have to create a class extending the ActivityGroup and set that as
content for the tab.
tabHost.addTab(tabHost.newTabSpec("Tab1")
.setIndicator("Tab1")
.setContent(new Intent(this, TabActivityGroup.class)
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
yes i think you got it.. How does that work for example plz?
On 21 Apr., 09:19, Android Users wrote:
> Sorry that i am re-phrasing your questions. Just want to confirm with my
> understanding, running more than one activity (changing from one activity to
> another) within a tab. If that is the c
Sorry that i am re-phrasing your questions. Just want to confirm with my
understanding, running more than one activity (changing from one activity to
another) within a tab. If that is the case then you will have to define an
ActivityGroup set it as the content for your tab.
if thats what you reall
hi,
oh sorry but i know the api-demo and for one activity firing up an
intent worked well but i really mean a android-task! So a few
activities where sequential launched and i would like to see all the
content views from these activities in the tab.
On 21 Apr., 07:54, Android Users wrote:
> Yo
You mean running an activity within a tab
If so, yes you can.
Ex:
tabHost.addTab(tabHost.newTabSpec("Tab 1")
.setIndicator("Tab 1")
.setContent(new Intent(this, Tab1Data.class)
.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)));
.addFlags(Intent.FL
7 matches
Mail list logo