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
4
votes
1 answer
How to start an Activity from a java class?
I read some posts about how could I call an Android's activity from another Java Class implemented in the application, but no answer to my problem.
I have a connection class (Connection.java) which handle the permanent connection needed by the…

Jorge
- 695
- 2
- 9
- 21
4
votes
3 answers
android API TabActivity deprecation
Well, im developing and app for api 8 with TabActivity but i found out today that "This class is deprecated."
So we should use FragmentActivity from now to implements tabs? but what about when i want to show a listview with an activity? Do i have to…

pata
- 959
- 2
- 18
- 35
4
votes
1 answer
Option Menu From Fragment in action bar in android
In my application i am having a TabActivity in which i am using One Activity which has two fragments.Both Fragments have options menu.But these Optionss menu are not showing up in the Action Bar.
I have also put items in menu to "showAsAction".

ARV
- 395
- 2
- 6
- 19
4
votes
3 answers
TabHost not showing contents in the beginning
I have a TabActivity with two tabs. the layout of the activity is as follows:

olix20
- 794
- 1
- 11
- 23
4
votes
4 answers
Android 2.1 NullPointerException with TabWidgets
I have an issue I have not been able to figure out and it is only happening on devices running <2.1. It works fine on android 2.2. I have ansynchronous task that displays a loading dialog while it loads all the tabs. Here is the code for the…

ninjasense
- 13,756
- 19
- 75
- 92
3
votes
2 answers
Button in title bar how to reach it
When creating a titlebar with a button, which is common in all activities e.g. title bar created in tabactivities. how is it possible to reach the button in all of the sub activities??
public class tabActivity extends TabActivity implements…

Jacksons
- 45
- 7
3
votes
1 answer
Back Button does not work with TabActivity and Group Activity
I have a problem with back button in the tabactivity and group activity.
Now I have a 4 tab, in a tab I have one more activity.
The back button doesn't work with group activity and tabactivity.
How can I make this work?
Here is my code:
for tabbar
…

Lucky
- 81
- 11
3
votes
1 answer
how to know when view has inflated using the onFinishInflate
I want to know when my TabActivity has inflated so i tried this code
@Override
protected void onFinishInflate() {
super.onFinishInflate();
}
i get the error: must override or implement a supertype method
I cannot understand why that is…

Erik
- 5,039
- 10
- 63
- 119
3
votes
2 answers
Merge TabActivity menu with contained Activities menus
My application's main Activity is a TabActivity and it contains an OptionsMenu. I define some other Activities (which go into a tab) and I would like to define a menu in each of these activities and have its menu merged with the main one. Is it…

Carles Company
- 7,118
- 5
- 49
- 75
3
votes
1 answer
Android how to interact with Fragment tabs
Hello I am having difficulty changing the visual view of the fragment activity. I created all the tabs but onClick I do not know how to pass the activity into that white space.
so the structure of this is a simple activity named Main which just…

CQM
- 42,592
- 75
- 224
- 366
3
votes
3 answers
Android TabActivity and Orientation change
I have a TabActivity that hosts other three activities.
If the first tab is selected, I can change the device orientation and everything is ok.
If I go to the second or the third tab and change the orientation, the tab sub activity's(second and…

Cata
- 11,133
- 11
- 65
- 86
3
votes
2 answers
What was used before Fragments?
I wanted to use Fragments for displaying different activities on one screen on a tablet, but realised that my tablet's API level is only 8 while Fragments require API level 11.
My question is thus, what was used before Fragments were introduced?
My…

marienke
- 2,465
- 4
- 34
- 66
3
votes
2 answers
Why does the first tab activity in Android live forever?
I've created a simple TabActivity which builds tabs at runtime reading some JSON data. At the moment I'm initializing an empty ListActivity with dummy random items for each tab just to see that changing from tab to tab works and the content doesn't…

Grzegorz Adam Hankiewicz
- 7,349
- 1
- 36
- 78
3
votes
1 answer
Android - Get reference to TabActivity from tabbed content
I have a class for my TabActivity
public class DashboardActivity extends TabActivity
This has several tabs and an actionbar. One of these tabs is a list of items.
public class WalletActivity extends ExpandableListActivity
I want to be able to run…

Josh
- 16,286
- 25
- 113
- 158
3
votes
4 answers
Getting Nullpointer exception when UnitTesting Android TabActivity
I am currently unittesting the sample TabLayout from android website. I am getting a NullPointerException when unittesting it like this:
public class MainActivityUnitTest extends ActivityUnitTestCase{
public…

Joshua Partogi
- 16,167
- 14
- 53
- 75