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
0
votes
1 answer

Tab always calls first activity?

I have created TabActivity in MainActivity. I have 5 Activities. And set the currentTab(2) to it. I mean i want to load the third tab as the launching Activity. Problem In the first Tab I am calling an AsyncTask on onCreate . It is calling whereas I…
Zar E Ahmer
  • 33,936
  • 20
  • 234
  • 300
0
votes
1 answer

Importing item from sd card and tabview is being used

I want to create a project where I've two tabs(SONGS and IMAGES) If I click on SONGS tab, I want the entire list of songs stored in my sd card or internal storage. Similarly, when I go to the Images tab, all the images are visible to me. Also on…
0
votes
1 answer

Tab Disappear when start new activity

I am developing android application which having multiple tabs. Now in launcher activity tabs display perfectly and can navigate through the tabs. but if i call activity(which i wanted to show as Tab) on Button Clicked then tabs seems disappear.…
yogesh patel
  • 375
  • 3
  • 9
  • 20
0
votes
0 answers

How to add menuitems of different tabs in the actionbar?

I am using a TabActivity in which i have 2 tabs with different activities.My app has total 3 activities.Two activities of the tabs and one activity is of the MainActivity. Now the problem is that the actionbar is only showing the menuitems of the…
0
votes
0 answers

Can I get the tab host container view programatically in android

I'm adding tabs to my activity in oncreate, I'd like to get the view associated with the tabs so i can edit it manually. I've tried this but the view is…
Brian
  • 4,328
  • 13
  • 58
  • 103
0
votes
0 answers

Refresh Activity inside Tab Activity

I created some activity(say A, B and C) under TabActivity and use m_tabHost.setCurrentTab(n); to launch appropriate Activity. Here I activity(say A) get launch as per behaviour on-click of define tab(say TAB A). Now how can reload same activity on…
CoDe
  • 11,056
  • 14
  • 90
  • 197
0
votes
1 answer

How to show page indicator on action bar in android?

Creating Page Tabs with page/view indicator on the action bar itself rather than below it. I tried various tutorials and examples but all show the tab/page/view indicator below the action bar only. The pages are the inflated with activities rather…
asethi
  • 146
  • 12
0
votes
3 answers

How to hide Action bar in Particular tab in tab group in android?

I am developing a application in which i am using Tab host without fragment. I want to remove action bar in particular Tab2Activity(Tab1 Tab2 Tab3).
0
votes
4 answers

onBackPressed method and onKeyDown is not working properly

I am using this code to open new activity View view = getLocalActivityManager().startActivity("recently_viewd", new Intent(context,Job_Description.class) .putExtra("line", result) …
deep
  • 169
  • 2
  • 18
0
votes
1 answer

How to access selected tabs in tab widget using login sharedpreferences?

In my application i used tab widget for home activity. it's include 4 tabs. unregistered user can access only two tabs. for access other two(favorite and offers) user should register. I used Android User Session Management using SharedPreferences…
anuruddhika
  • 1,549
  • 8
  • 26
  • 40
0
votes
1 answer

Simple tab activity in android

What i am trying to do:: BreakfastLunchDinnerIndividualListOfItems.java public class BreakfastLunchDinnerIndividualListOfItems extends TabActivity implements OnTabChangeListener{ /** Called when the activity is first created. */ @Override …
smriti3
  • 871
  • 2
  • 15
  • 35
0
votes
1 answer

refresh tab - android

Good afternoon, I am making an application in android, and I'm doing the layout for tab. But a problem arose when changing tab because it only gets updated when I open the first time after that is not updated. @Override public void…
0
votes
1 answer

Starting TabActivity from Activity class

I am trying to run Activity which extends TabActivity from a class which extends Activity. Intent intent = new Intent(this, TasksTabLayoutActivity.class); startActivity(intent); This is my TabActivity class definition: public class…
Michael A
  • 5,770
  • 16
  • 75
  • 127
0
votes
0 answers

Switching back to previous activity in tabhost

I am using TabActivity(for example, TActivity) to create tab and in every tab I am loading instance of same activity(for example, MainActivity). Through this activity I want to switch another activitity(for example, ChildActivity which will be same…
userx
  • 806
  • 1
  • 11
  • 23
0
votes
0 answers

Open a tab depending on the condition in TabActivity

I am creating an android application. I have a LoginActivity. After clicking on submit button in LoginActivity I want to call a TabActivity. In that TabActivity I want to open tabs depending on the condition i.e. depending on the condition(which…
Manish
  • 157
  • 1
  • 2
  • 10