This tag is related to android TabActivity. It is an activity that contains and runs multiple embedded activities or views.
Questions tagged [tabactivity]
320 questions
0
votes
1 answer
Call a function instead of intent in android tabactivity
Sorry for my bad english...
i made a tab bar activity in android application with this code:
TabHost tabHost = (TabHost) findViewById(android.R.id.tabhost);
Intent intent = new Intent(this, Page2.class);
TabHost.TabSpec spec =…

Samuel Benares
- 61
- 1
- 6
0
votes
1 answer
Change the current TabHost's Tab, inside a child Tab Activity
I'm working on an Android Application where the MainActivity is a TabActivity, There are Three other Activities : ACT1, ACT2 and ACT3 that are The MainActivity tabs, is it possible to change the MainActivity current tab inside ACT1, ACT2 or ACT3.

Hossam Oukli
- 1,296
- 3
- 19
- 42
0
votes
4 answers
OptionsMenu stops appearing when navigate to other activity
I have the following structure:
My problem is that whenever I go from Activities 1, 2 or 3 to SubActivities and back to the Activities, Options Menu stops appearing (Neither onCreateOptionsMenu nor onPrepareOptionsMenu). My guess is that this is…

Mohamed_AbdAllah
- 5,311
- 3
- 28
- 47
0
votes
4 answers
TabHost.TabSpec setIndicator
I want to get rid of the default indicator to achieve the same result when a tab is selected (no indicator). I've tried:
TabHost.TabSpec specs = tabHost.newTabSpec("").setIndicator("").setContent(intent);
TabHost.TabSpec specs =…

GuilhE
- 11,591
- 16
- 75
- 116
0
votes
0 answers
get nullpointer using getLocalActivityManager().getActivity(tag)
I'm using TabActivity to implement tabs in my project and I want to communicate with activities of tabs and invoke some methods from tabActivity and I use method below:
CoachActivity activity=(CoachActivity)…

Mohamad Ghafourian
- 1,052
- 1
- 14
- 26
0
votes
1 answer
Pause media using audio manager
I am using tab activity where there are multiple playlists of songs..So whenever I am playing song from one playlists and moves to another one,both the songs starts playing simultaneously.Now what I want is to stop music from my previous activity…

dasa
- 179
- 4
- 16
0
votes
0 answers
Error in TabActivity when returning from Sleep/StandbyMode
I have used TabActivity in my Android Application. Everything works fine, except the following scenario:
I close the app by using the home button
I turn off the phone (standby mode)
After a while I turn on the phone and I want to return to my…

John Hammer
- 33
- 4
0
votes
1 answer
How do I Pass an Intent to a Tab Activitiy in a onClickListener
I have a Tabbed Activity that I want to pass an intent to. I am trying to pass some parameters and this is not passing the intent. I am setting the current Tab in the onClickListener. My Code is below how do I do…

yams
- 942
- 6
- 27
- 60
0
votes
2 answers
Reloading Activity in the Present Tab
I have noticed that if I try clicking on the present tab to go back to the first screen of that particular activity, the action does not happen at all. While many answers suggest including the addFlag(Intent.FLAG_ACTIVITY_CLEAR_TOP), it doesn't…

Melvin Mah
- 105
- 2
- 13
0
votes
2 answers
Opening OptionsMenu on the touch of a tab of the TabActivity
I have a tabActivity where I am adding tabs on runtime. So I think this is the usual code to do that:
_tabSpec = TabHost.newTabSpec("More");
_tabSpec.setIndicator("",…

Parikksit Bhisay
- 163
- 1
- 5
- 20
0
votes
1 answer
Why Group Activity is Deprecated
I am Searching for the answer of my questions
Why Group Activity is deprecated?
I did not find any proper answer. My second question is
Why we have to use Fragment instead of Group Activity?
I need answer of these question in detail.

farrukh
- 627
- 4
- 16
0
votes
1 answer
android setting default tab in tab-activity
android TabActivity launches the FragmentActivity associated with the first tab added in the sequence before setting tabhost.setCurretnTab(4);
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
…

Khurram Shehzad
- 1,010
- 12
- 16
0
votes
1 answer
Open a TabActivity with "simple" Activity
I have a problem when I try to open a TabActivity with an intent from an Activity.
The code of my activity (ConnexionActivity), which is NOT an activity from a tab :
buttonConnexion.setOnClickListener(new OnClickListener(){
…

Jonathan Sgn
- 3
- 2
0
votes
3 answers
How to re-create activity each time the tab is visited
I have a TabActivity, and I want to re-create the activity with the tab is visited(calling the content of onCreate() each visit) . how ?

Adham
- 63,550
- 98
- 229
- 344
0
votes
1 answer
Android: redrawable ListView with Adapter inside TabActivity. View doesn't change FIXED
So I have a ListView inside my TabHost and I want to redrow its content every time I change the tab. Nevertheless I never get the list drawed.
My xml file looks like:

inor
- 13
- 1
- 1
- 6