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
5
votes
4 answers

Changing title of tabbar in android

I googled this but couldn't find any solution please help. I have created a tabbar view having 3 tabs with Tabhost and set its title with TabSpec like this : TabSpec tbhome = tabHost.newTabSpec("Home"); tbhome.setIndicator("Selected Topic"); I…
Vish
  • 341
  • 1
  • 4
  • 19
5
votes
1 answer

TabActivity -> Fragments.. is it really this complicated?

I know the tabactivity thing has been covered here a million times, by ten million people. I've got the developer references and have been reading all the threads I can find on SO. My question is though, is fragments REALLY that complicated? …
Evan R.
  • 1,210
  • 1
  • 27
  • 42
4
votes
5 answers

Android SDK Fragment Support

Ok i'm just starting to get into Android programming now, and I'm following the android "TabActivity" tutorial: http://developer.android.com/reference/android/app/TabActivity.html. Everythings working but it can't seem to find some of the support…
Ice Phoenix
  • 1,001
  • 3
  • 16
  • 34
4
votes
1 answer

Why getActionBar() getting null value in TabHost from Android?

I am trying to write a code in Android , to hide the Actionbar during scroll down event. I have a grid 10x50. So when i am scrolling down the action bar should hide. I am getting scroll state result in the Log Cat correctly so , whenever i am…
3
votes
3 answers

Click on spinner gives WindowManager$BadTokenException

I am using Tabwidget, Tab are implemented in same way which shows in tutorial "MainActivity -> Activity1 -> Activity2(given Image)" Now clicking on the spinner gives android.view.WindowManager$BadTokenException: Unable to add window -- token…
3
votes
1 answer

How to call activity for the same tab which is currently active

I need to implement tabs in my project.i have a layout, in which i have two tabs and a button. For two tabs,I have two activities and button calling different activity. the thing is I am showing result of button on first tab. i.e tab0 is active on…
Romi
  • 4,833
  • 28
  • 81
  • 113
3
votes
1 answer

java.lang.StackOverflowError while adding new activity in activity group

I am getting stackoverflow error My layout structure as below
Dharmendra
  • 33,296
  • 22
  • 86
  • 129
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

Intent to open a specific tab of tabbed activity

I have a tabbed activity with 5 tabs. Each tab has only one Imageview. On a previous page I have 5 buttons and I want to create an interface such that each button starts the tabbed activity but the first tab which is visible is specific to that…
3
votes
2 answers

How to impliment navigation drawer and swipe tab in same activity in android studio?

I have done both separately and I want to combine the both activity in single activity. I can't get any idea what should I do. Please please help me. MainActivity.java Public class MainActivity extends AppCompatActivity implements…
3
votes
0 answers

Icons Appear on TabActivitys in Android 2.3.4 but do not on Android 4.2.2

I have created a android App with a TabHost and TabActivity. On Android 2.3.4 the Icons appear on my tab but on Android 4.2.2 they do not. Here is my TabHost Activity code. And All the icons are in the res.drawable…
yams
  • 942
  • 6
  • 27
  • 60
3
votes
2 answers

Alternative of TabAcitivity

Hi Friends i want to create tab's in project. For making tab there is two way which i found 1) Extends the activity class with TabActivity class which is deprecated as i seem this is a easy way but don't why it is deprecated so i want to know…
Love Garg
  • 406
  • 1
  • 5
  • 17
3
votes
1 answer

onCreate() method is called instead of onNewIntent()

I am developing an application where i have integrated Twitter in TabActivity. I have not created another activity, I am calling intent from TabActivity(Where we add all tabs), If I call intent from another activity it shows black screen. For this i…
Karan Rana
  • 638
  • 4
  • 14
3
votes
4 answers

onActivityResult() not called inside a TabHost

I have two Activities, one is a picker activity and the other is a list of choices. Once a choice is clicked, data is returned to the picker activity. These two activities are part of an activity group and the activity group is a TabSpec inside a…
Jason Christa
  • 12,150
  • 14
  • 58
  • 85
3
votes
1 answer

Gallery OnActivityResult is not working in TabActivity

i got problem with my code , i am trying to get image from the gallery and show it on my xml layout (The problem is when i click on the button it goes to the gallery but when i select a picture it just gees to another tab ) 1) my main class which…
1
2
3
17 18