Questions tagged [android-tabactivity]

TabActivity is an Activity class that contains and runs multiple embedded activities or views.

The TabActivity is an Android Activity subclass that can be used to show content in the form of tabs(with either Views or other child Activities). With the introduction of Fragments the TabActivity is deprecated and shouldn't be used in new written code(in favor of the more robust Fragment framework).

260 questions
1
vote
1 answer

Pass ArrayList from fragment to another fragment

I have a problem. I'm building an Android app. I created a Tabbed Activity with Android Studio. I have 3 tabs. I created 3 classes java with their relative xml. In first tab I take data from internet with Jsoup and i put these data in 2 ArrayList. I…
1
vote
0 answers

What is the best approach to implementing Android Camera with TabActivity?

I've created a simple Android app with two tabs (for now). The first tab contains a SurfaceView that has a its SurfaceHolder contain a Camera instance:
Jack Sparser
  • 75
  • 2
  • 10
1
vote
1 answer

Android TabActivity with Toolbar - setSupportActionBar() unknow

Is it possible to use setSupportActionBar() in an TabActivity? Extending with AppCompatActivity is not possible... public class TabHost extends TabActivity { public void onCreate(Bundle savedInstanceState) { …
Oli
  • 3,496
  • 23
  • 32
1
vote
1 answer

Cannot set OnClick for a button inside a TAB

Kindly help.I am new to android TABS. I want my button to take me to a new page when it is clicked on. Currently I am trying to implement the same method as I used to. public class PhotosActivity extends Activity { private Button…
Vicky Tilwani
  • 21
  • 1
  • 4
1
vote
1 answer

Add a fragment in between ActionBar and Tabs

I am done with adding Action Bar and swipe able Tabs but now I want to add a fragment above the tabs which occupies good amount of screen and contains an image some text details and a spinner/drop down list as well. How can I do that? I could not…
1
vote
1 answer

How to avoid starting the activity at the first tab in a TabActivity?

i want to avoid starting activity in the first tab .. tabHost.setCurrentTab(1). When the tab activity starts, I expect that only the activity in tab 2 gets started. But, currently, Android starts both activity in tab 1 and activity in tab 2, if I…
user4082373
1
vote
0 answers

How to prevent starting the activity the first tab in a TabActivity?

i want to avoid starting activity in the first tab.. I set tab 2 as default tab using tabHost.setCurrentTab(1). When the tab activity starts, I expect that only the activity in tab 2 gets started. But, currently, Android starts both activity in tab…
user4082373
1
vote
0 answers

How to pass object from an activity to another activity extending tab activity?

I have my Starting activity which extends activity, from here I want to pass an object to a next activity that extends tab activity. How can I implement put extra in my starting and how can i implement get extra in my activity that extends tab…
KirbyAbadilla
  • 189
  • 1
  • 5
  • 16
1
vote
1 answer

How to Create Additional Table in Activity within a Tab

I would like to add an additional independent row in my existing activity that already consist of a table layout within a tab. The new table should be below the existing table layout. However, the independent table is not showing. What is the best…
1
vote
2 answers

I want to save the state of tab

I have created three tabs in my application and opening child activities inside each tab. Now what i want is that i want to save the state of tab. e.g. If i am working on TAB-1's child activity and press TAB-2. and then if go back on TAB-1. It get…
user3679400
  • 87
  • 1
  • 9
1
vote
1 answer

Listview is not viewing completly in tabview

I am trying to display list view in tab view but list view is not completely view able. List view is not getting scroll as well.I am not able to track the issue.Please see if you find issue.Any kind of help will be appreciable . ! Here is my code…
1
vote
1 answer

Does child activity of TabActivity supports onActivityResult() method?

I know there are lots of question related to my question, but i dint get any answer who will solve my problem, Basically my requirement is choose the image from gallary and set that image back to ImageView of child activity of Tab Activity, but in…
Reena
  • 1,368
  • 1
  • 11
  • 25
1
vote
1 answer

TabActivity Child not loaded

I implemented TabActivity in my android application. On first time I load activity and click on 2nd tab to load Activity say activity2 on second tab => in second tab I have grid view=> on click event of grid view I open the child activity23 on…
Bhavikkumar
  • 446
  • 8
  • 24
1
vote
1 answer

Android Tab with Listview

Im trying to make a travel phrase application in android in 2 different languages. where in the first screen user selects which language to use. language selections can be in any layout. (grids, listview, button or tab). and from there im trying to…
1
vote
1 answer

Tabhost not appear when open new activity out Side of the tab

Here my code View view = getLocalActivityManager().startActivity("recently_viewd", new Intent(context,Job_Description.class) .putExtra("line", result) .putExtra("limit",0) …
deep
  • 169
  • 2
  • 18